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
This commit is contained in:
Cyborus 2023-12-17 20:49:41 +00:00
commit e69590d936

View file

@ -35,6 +35,7 @@ steps:
image: codeberg.org/cyborus/forgejo-cli:latest image: codeberg.org/cyborus/forgejo-cli:latest
pull: true pull: true
commands: commands:
- export FORGE_HOST=$(echo $CI_FORGE_URL | sed -E 's_^https?://__')
- fj auth add-key $FORGE_HOST $CI_REPO_OWNER $TOKEN - 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 --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 - fj auth logout $FORGE_HOST