fix: deploy docs only on master
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2024-06-07 23:01:23 +05:30
parent 046347513d
commit b436f545a4
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

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