From f3eb17deef24fa1dde73a6e3c5891153675e6454 Mon Sep 17 00:00:00 2001
From: Johannes Loher <johannes.loher@fg4f.de>
Date: Wed, 2 Feb 2022 01:33:33 +0100
Subject: [PATCH] build: delete obsolete versions when auto publishing

---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c4c3040..41d69ac 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -169,6 +169,7 @@ publish-to-foundry-admin:
     variables:
         FVTT_MANIFEST_PATH: ds4/system.json
         FVTT_MANIFEST_URL: ${CI_PROJECT_URL}/-/releases/${CI_COMMIT_TAG}/downloads/system.json
+        FVTT_DELETE_OBSOLETE_VERSIONS: "true"
     script: foundry-publish
     rules:
         - if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'