packager/.woodpecker.yml
2023-10-14 22:39:46 +02:00

41 lines
No EOL
961 B
YAML

when:
event:
- push
- manual
- tag
path:
include:
- "pkgr/**"
- "bootpkg/**"
- "pkgfile/**"
- "pkg/**"
- "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