Fix host reference
All checks were successful
CI / Test (push) Successful in 52s
CI / Build (push) Successful in 41s

This commit is contained in:
Greg Gauthier 2026-06-12 22:37:42 +01:00
parent a2eaa03090
commit d545a9bd08

View File

@ -78,11 +78,18 @@ jobs:
shell: bash shell: bash
env: env:
GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }} GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }}
STAGING_HOST: ${{ variables.STAGING_HOST }}
PROD_HOST: ${{ variables.PROD_HOST }}
run: | run: |
set -euo pipefail set -euo pipefail
# If staging:
HOST=${STAGING_HOST}
# If Prod:
# HOST=${PROD_HOST}
VERSION=${GITHUB_REF#refs/tags/} VERSION=${GITHUB_REF#refs/tags/}
GITEA_API=https://repos.gmgauthier.com/api/v1 GITEA_API=https://${HOST}/api/v1
REPO=${GITHUB_REPOSITORY} REPO=${GITHUB_REPOSITORY}
echo "Creating release for tag ${VERSION} on ${REPO}..." echo "Creating release for tag ${VERSION} on ${REPO}..."