ci: make mark releases for the beta channel as prereleases
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
All checks were successful
ci/woodpecker/pr/checks Pipeline was successful
This commit is contained in:
parent
4f9ba624de
commit
29164fc148
1 changed files with 29 additions and 13 deletions
|
@ -9,6 +9,20 @@ variables:
|
||||||
- &enable_pnpm
|
- &enable_pnpm
|
||||||
- corepack enable
|
- corepack enable
|
||||||
- corepack prepare pnpm@latest --activate
|
- corepack prepare pnpm@latest --activate
|
||||||
|
- &is_latest_channel
|
||||||
|
evaluate: CI_COMMIT_TAG matches "^[0-9]+\\\\.[0-9]+\\\\.[0-9]+$"
|
||||||
|
- &is_beta_channel
|
||||||
|
evaluate: CI_COMMIT_TAG matches "^[0-9]+\\\\.[0-9]+\\\\.[0-9]+-[0-9]+$"
|
||||||
|
- &release_plugin woodpeckerci/plugin-gitea-release
|
||||||
|
- &release_base_settings
|
||||||
|
base_url: ${CI_FORGE_URL}
|
||||||
|
title: ${CI_COMMIT_TAG}
|
||||||
|
note: CHANGELOG.md
|
||||||
|
files:
|
||||||
|
- ${CI_REPO_NAME}.zip
|
||||||
|
- ${CI_REPO_NAME}/system.json
|
||||||
|
api_key:
|
||||||
|
from_secret: forge_token
|
||||||
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
@ -51,25 +65,27 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- echo latest > .RELEASE_CHANNEL
|
- echo latest > .RELEASE_CHANNEL
|
||||||
when:
|
when:
|
||||||
evaluate: CI_COMMIT_TAG matches "^[0-9]+\\\\.[0-9]+\\\\.[0-9]+$"
|
<<: *is_latest_channel
|
||||||
choose-beta-channel:
|
choose-beta-channel:
|
||||||
group: prepare-release
|
group: prepare-release
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo beta > .RELEASE_CHANNEL
|
- echo beta > .RELEASE_CHANNEL
|
||||||
when:
|
when:
|
||||||
evaluate: CI_COMMIT_TAG matches "^[0-9]+\\\\.[0-9]+\\\\.[0-9]+-[0-9]+$"
|
<<: *is_beta_channel
|
||||||
release:
|
release-latest:
|
||||||
image: woodpeckerci/plugin-gitea-release
|
image: *release_plugin
|
||||||
settings:
|
settings:
|
||||||
base_url: ${CI_FORGE_URL}
|
<<: *release_base_settings
|
||||||
title: ${CI_COMMIT_TAG}
|
when:
|
||||||
note: CHANGELOG.md
|
<<: *is_latest_channel
|
||||||
files:
|
release-beta:
|
||||||
- ${CI_REPO_NAME}.zip
|
image: *release_plugin
|
||||||
- ${CI_REPO_NAME}/system.json
|
settings:
|
||||||
api_key:
|
<<: *release_base_settings
|
||||||
from_secret: forge_token
|
prerelease: true
|
||||||
|
when:
|
||||||
|
<<: *is_beta_channel
|
||||||
publish-manifest:
|
publish-manifest:
|
||||||
group: publish
|
group: publish
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
@ -95,4 +111,4 @@ steps:
|
||||||
- fvtt_username
|
- fvtt_username
|
||||||
- fvtt_password
|
- fvtt_password
|
||||||
when:
|
when:
|
||||||
evaluate: CI_COMMIT_TAG matches "^[0-9]+\\\\.[0-9]+\\\\.[0-9]+$"
|
<<: *is_latest_channel
|
||||||
|
|
Loading…
Reference in a new issue