[ci] set FORGE_HOST env var in release step

apparently env vars do not carry over between steps
This commit is contained in:
Cyborus 2023-12-17 15:21:46 -05:00
parent 41035c1185
commit f326e93e84
No known key found for this signature in database

View file

@ -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