ci: use $PACKAGE_TYPE variable in more places
This commit is contained in:
parent
356323a724
commit
df4538f6ed
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ publish-artifacts:
|
||||||
- apk add zip curl
|
- apk add zip curl
|
||||||
script: |
|
script: |
|
||||||
cd dist
|
cd dist
|
||||||
zip -r ../system.zip .
|
zip -r ../$PACKAGE_TYPE.zip .
|
||||||
cd ..
|
cd ..
|
||||||
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file $PACKAGE_TYPE.zip "$PACKAGE_REGISTRY_URL/$CI_COMMIT_TAG/$PACKAGE_TYPE.zip"
|
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file $PACKAGE_TYPE.zip "$PACKAGE_REGISTRY_URL/$CI_COMMIT_TAG/$PACKAGE_TYPE.zip"
|
||||||
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file dist/$PACKAGE_TYPE.json "$PACKAGE_REGISTRY_URL/$CI_COMMIT_TAG/$PACKAGE_TYPE.json"
|
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file dist/$PACKAGE_TYPE.json "$PACKAGE_REGISTRY_URL/$CI_COMMIT_TAG/$PACKAGE_TYPE.json"
|
||||||
|
@ -190,7 +190,7 @@ publish-to-foundry-admin:
|
||||||
image: johannesloher/foundry-publish
|
image: johannesloher/foundry-publish
|
||||||
variables:
|
variables:
|
||||||
FVTT_MANIFEST_PATH: dist/$PACKAGE_TYPE.json
|
FVTT_MANIFEST_PATH: dist/$PACKAGE_TYPE.json
|
||||||
FVTT_MANIFEST_URL: ${CI_PROJECT_URL}/-/releases/${CI_COMMIT_TAG}/downloads/system.json
|
FVTT_MANIFEST_URL: ${CI_PROJECT_URL}/-/releases/${CI_COMMIT_TAG}/downloads/$PACKAGE_TYPE.json
|
||||||
FVTT_DELETE_OBSOLETE_VERSIONS: "true"
|
FVTT_DELETE_OBSOLETE_VERSIONS: "true"
|
||||||
script: foundry-publish
|
script: foundry-publish
|
||||||
rules:
|
rules:
|
||||||
|
|
Loading…
Reference in a new issue