fix(woodpecker): tweaking release process
This commit is contained in:
parent
b8f9c0daca
commit
137784dda6
2 changed files with 24 additions and 30 deletions
|
@ -9,18 +9,39 @@ pipeline:
|
|||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||
commands:
|
||||
- nix develop --command scripts/build.sh
|
||||
when:
|
||||
event: [push, pull_request, tag]
|
||||
tag: v*
|
||||
|
||||
test:
|
||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||
commands:
|
||||
- nix develop --command scripts/test.sh
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
release:
|
||||
|
||||
release-main:
|
||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||
commands:
|
||||
- export DRONE="true" # Required to convince `env-ci` that it is a known CI
|
||||
- git branch $DRONE_BRANCH origin/$DRONE_BRANCH # semantic-release needs this locally
|
||||
- git branch $$CI_COMMIT_SOURCE_BRANCH origin/$$CI_COMMIT_SOURCE_BRANCH # semantic-release needs this locally
|
||||
- nix develop --command scripts/release.sh
|
||||
secrets:
|
||||
- gitea_token
|
||||
- git_credentials
|
||||
when:
|
||||
event: [push]
|
||||
event: push
|
||||
branch: main
|
||||
|
||||
release-gitea:
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://src.mfgames.com
|
||||
files:
|
||||
- "*.pdf"
|
||||
- "*.epub"
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
when:
|
||||
event: tag
|
||||
tag: v*
|
|
@ -1,27 +0,0 @@
|
|||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
tags: true
|
||||
|
||||
pipeline:
|
||||
build:
|
||||
image: registry.gitlab.com/dmoonfire/nix-flake-docker:latest
|
||||
commands:
|
||||
- nix develop --command scripts/build.sh
|
||||
when:
|
||||
event: [tag]
|
||||
tag: v*
|
||||
gitea:
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://src.mfgames.com
|
||||
files:
|
||||
- "*.pdf"
|
||||
- "*.epub"
|
||||
secrets:
|
||||
- source: gitea_token
|
||||
target: plugin_api_key
|
||||
when:
|
||||
event: [tag]
|
||||
tag: v*
|
Loading…
Reference in a new issue