yuno/.woodpecker/html.yml
silvana e375c73ba8
All checks were successful
ci/woodpecker/tag/html Pipeline was successful
ci/woodpecker/pr/quality Pipeline was successful
Fix(cicd): add html pipeline.
2024-08-04 11:48:24 +02:00

31 lines
1,016 B
YAML

when:
- event: [tag]
steps:
cache-restore:
image: minio/mc
secrets: [access_key, secret_key]
commands:
- mc alias set minio https://minio.ragarock.moe $access_key $secret_key
- mc cp -quiet --recursive minio/yuno/cache-html/target target
failure: ignore
build:
image: git.ragarock.moe/silvana/yuno/rust:latest
environment: [CARGO_TERM_COLOR=always, CARGO_HOME=./.cargo-home]
commands:
- rustup default nightly
- rustup target add wasm32-unknown-unknown
- trunk build
upload:
image: minio/mc
secrets: [access_key, secret_key]
commands:
- mc alias set minio https://minio.ragarock.moe $access_key $secret_key
- mc cp -quiet --recursive dist/ minio/yuno/${CI_COMMIT_TAG}/
cache-upload:
image: minio/mc
secrets: [access_key, secret_key]
commands:
- mc alias set minio https://minio.ragarock.moe $access_key $secret_key
- mc cp -quiet --recursive target/ minio/yuno/cache-html/target
failure: ignore