packager/.woodpecker.yml

33 lines
853 B
YAML
Raw Normal View History

2023-08-01 20:58:09 +02:00
when:
event: push
2023-08-01 21:02:44 +02:00
path:
include:
- "pkgr/**"
- "bootpkg/**"
- "pkgfile/**"
- "pkg/**"
- "manifest/**"
2023-08-01 20:58:09 +02:00
steps:
check: # check if the code compiles
image: rust
commands:
- cargo check --manifest-path bootpkg/Cargo.toml --verbose --all
- cargo check --manifest-path pkgr/Cargo.toml --verbose --all
build:
image: rust
commands:
- cargo build --release --manifest-path bootpkg/Cargo.toml --verbose --all
- cargo build --release --manifest-path pkgr/Cargo.toml --verbose --all
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-08-01 21:02:44 +02:00
target: main
when:
event: tag