fix: CI only publish on master
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details

This commit is contained in:
Aravinth Manivannan 2023-10-24 19:47:44 +05:30
parent 1ce0744b18
commit d6aaac3f4a
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
1 changed files with 9 additions and 3 deletions

View File

@ -1,12 +1,18 @@
pipeline:
backend:
steps:
test:
image: rust
commands:
- apt update && apt-get -y --no-install-recommends install tar gpg curl wget git
- rustup component add rustfmt
- rustup component add clippy
- make lint
- make test
- make doc
publish:
image: python
when:
event: [push, tag, deployment]
branch: master
commands:
- apt update && apt-get -y --no-install-recommends install tar gpg curl wget git
- make ci-deploy
secrets: [ GITEA_WRITE_DEPLOY_KEY, LIBREPAGES_DEPLOY_SECRET ]