summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@noreply.codeberg.org>2023-12-17 21:49:41 +0100
committerCyborus <cyborus@noreply.codeberg.org>2023-12-17 21:49:41 +0100
commite69590d93601a44ea62f26c954e1eab0be530881 (patch)
tree7d4d5d157c90fefb4fc21d20475f3fdb59cc4afe
parentMerge pull request 'forgejo instance agnostic deployment' (#27) from agnostic... (diff)
parent[ci] set `FORGE_HOST` env var in release step (diff)
downloadforgejo-cli-e69590d93601a44ea62f26c954e1eab0be530881.tar.xz
forgejo-cli-e69590d93601a44ea62f26c954e1eab0be530881.zip
Merge pull request '[ci] set `FORGE_HOST` env var in release step' (#28) from ci-fix into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-cli/pulls/28
-rw-r--r--.woodpecker/deploy.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml
index becbfa6..87c75cf 100644
--- a/.woodpecker/deploy.yml
+++ b/.woodpecker/deploy.yml
@@ -35,6 +35,7 @@ steps:
image: codeberg.org/cyborus/forgejo-cli:latest
pull: true
commands:
+ - export FORGE_HOST=$(echo $CI_FORGE_URL | sed -E 's_^https?://__')
- fj auth add-key $FORGE_HOST $CI_REPO_OWNER $TOKEN
- fj --remote $CI_REPO_URL release create $VERSION --create-tag --branch $BRANCH --attach forgejo-cli-windows.zip --attach forgejo-cli-windows.gz
- fj auth logout $FORGE_HOST