2023-08-01 20:58:09 +02:00
|
|
|
when:
|
2023-08-01 21:03:24 +02:00
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- manual
|
2023-08-01 21:07:56 +02:00
|
|
|
- tag
|
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:
|
2023-08-01 21:04:40 +02:00
|
|
|
- cargo check --release --manifest-path bootpkg/Cargo.toml --all
|
|
|
|
- cargo check --release --manifest-path pkgr/Cargo.toml --all
|
2023-08-01 20:58:09 +02:00
|
|
|
build:
|
|
|
|
image: rust
|
|
|
|
commands:
|
2023-08-01 21:04:40 +02:00
|
|
|
- cargo build --release --manifest-path bootpkg/Cargo.toml --all
|
|
|
|
- cargo build --release --manifest-path pkgr/Cargo.toml --all
|
2023-08-01 20:58:09 +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:
|
2023-08-01 21:15:47 +02:00
|
|
|
from_secret: gitea_access_token
|
2023-08-01 21:02:44 +02:00
|
|
|
target: main
|
|
|
|
when:
|
|
|
|
event: tag
|