packager/.woodpecker.yml
2023-08-01 21:33:12 +02:00

40 lines
No EOL
944 B
YAML

when:
event:
- push
- manual
- tag
path:
include:
- "pkgr/**"
- "bootpkg/**"
- "pkgfile/**"
- "manifest/**"
steps:
clippy: # check if the code compiles
image: rust
commands:
- cargo clippy --release --no-deps --manifest-path bootpkg/Cargo.toml
- cargo clippy --release --no-deps --manifest-path pkgr/Cargo.toml
pull: true
failure: ignore
build:
image: rust
commands:
- cargo build --release --manifest-path bootpkg/Cargo.toml --all
- cargo build --release --manifest-path pkgr/Cargo.toml --all
pull: true
failure: fail
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
target: main
failure: ignore
when:
event: tag