Upload package and publish new version
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Guillem Borrell Nogueras 2022-11-21 00:26:22 +01:00
parent 657c74e4e5
commit 35a2992118

View file

@ -3,7 +3,8 @@ pipeline:
image: rust:1-buster
when:
event: tag
secrets: [ gitea_api_key ]
secrets: [ gitea_api_key , cargo_registry_token ]
commands:
- cargo build --release
- curl --user guillem:$GITEA_API_KEY https://git.guillemborrell.es/api/packages/guillem/generic/dr/$CI_COMMIT_TAG/dr
- curl --user guillem:$GITEA_API_KEY --upload-file target/release/dr https://git.guillemborrell.es/api/packages/guillem/generic/dr/$CI_COMMIT_TAG/dr-linux-amd64
- cargo publish --token $CARGO_REGISTRY_TOKEN