build: delete obsolete versions when auto publishing

This commit is contained in:
Johannes Loher 2022-02-02 01:33:33 +01:00
parent 7ed993e04b
commit f3eb17deef

View file

@ -169,6 +169,7 @@ publish-to-foundry-admin:
variables: variables:
FVTT_MANIFEST_PATH: ds4/system.json FVTT_MANIFEST_PATH: ds4/system.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/system.json
FVTT_DELETE_OBSOLETE_VERSIONS: "true"
script: foundry-publish script: foundry-publish
rules: rules:
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/' - if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'