packager/.woodpecker.yml

35 lines
852 B
YAML
Raw Normal View History

2023-10-14 22:39:45 +02:00
when:
2023-10-14 22:39:45 +02:00
event:
- push
- manual
2023-10-14 22:39:45 +02:00
path:
include:
- "pkgr/**"
- "bootpkg/**"
- "pkgfile/**"
- "pkg/**"
- "manifest/**"
2023-10-14 22:39:45 +02:00
steps:
check: # check if the code compiles
image: rust
commands:
2023-10-14 22:39:45 +02:00
- cargo check --release --manifest-path bootpkg/Cargo.toml --all
- cargo check --release --manifest-path pkgr/Cargo.toml --all
2023-10-14 22:39:45 +02:00
build:
image: rust
commands:
2023-10-14 22:39:45 +02:00
- cargo build --release --manifest-path bootpkg/Cargo.toml --all
- cargo build --release --manifest-path pkgr/Cargo.toml --all
2023-10-14 22:39:45 +02:00
publish:
image: woodpeckerci/plugin-gitea-release
settings:
base_url: https://git.ixvd.net
files:
- "bootpkg/target/release/bootpkg"
- "pkgr/target/release/pkgr"
api_key:
from_secret: GITEA_ACCESS_TOKEN
2023-10-14 22:39:45 +02:00
target: main
when:
event: tag