Fix host reference
This commit is contained in:
parent
a2eaa03090
commit
d545a9bd08
@ -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}..."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user