ci: use $PACKAGE_TYPE variable in more places

This commit is contained in:
Johannes Loher 2022-11-28 01:18:44 +01:00
parent 356323a724
commit df4538f6ed

View file

@ -100,7 +100,7 @@ publish-artifacts:
- apk add zip curl
script: |
cd dist
zip -r ../system.zip .
zip -r ../$PACKAGE_TYPE.zip .
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 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
variables:
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"
script: foundry-publish
rules: