From e0400793ff66cdb19350753b03b0769fb3699719 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 12 Jun 2025 23:12:49 +0200 Subject: [PATCH] Fix CI/CD --- .gitea/workflows/release.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 3a6af12..0995efe 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -1,6 +1,6 @@ name: Release Creation -on: +on: release: types: [published] @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - run: echo "💡 The ${{ gitea.repository }} repository will cloned to the runner." - + #- uses: actions/checkout@v3 - uses: RouxAntoine/checkout@v3.5.4 @@ -29,20 +29,20 @@ jobs: url: https://www.uberwald.me/gitea/${{gitea.repository}} manifest: https://www.uberwald.me/gitea/public/fvtt-cthulhu-eternal/releases/download/latest/system.json download: https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/fvtt-cthulhu-eternal.zip - + # Create a zip file with all files required by the module to add to the release - run: | apt update -y apt install -y zip - run: zip -r ./fvtt-cthulhu-eternal.zip system.json README.md LICENSE assets/ css/ fonts/ lang/ module/ packs-system/ templates/ cthulhu-eternal.mjs - + - name: setup go uses: https://github.com/actions/setup-go@v4 with: go-version: '>=1.20.1' - - - name: Use Go Action + + - name: Use Go Action id: use-go-action uses: https://gitea.com/actions/release-action@main with: @@ -50,14 +50,14 @@ jobs: ./fvtt-cthulhu-eternal.zip system.json api_key: '${{secrets.ALLOW_PUSH_RELEASE}}' - - - name: Publish to Foundry server - uses: djlechuck/foundryvtt-publish-package-action@v1 + + - name: Publish to Foundry server + uses: https://github.com/djlechuck/foundryvtt-publish-package-action@v1 with: token: ${{ secrets.FOUNDRYVTT_RELEASE_TOKEN }} id: 'fvtt-cthulhu-eternal' version: ${{github.event.release.tag_name}} manifest: 'https://www.uberwald.me/gitea/public/fvtt-cthulhu-eternal/releases/download/latest/system.json' notes: 'https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/fvtt-cthulhu-eternal.zip' - compatibility-minimum: '12' - compatibility-verified: '12' \ No newline at end of file + compatibility-minimum: '13' + compatibility-verified: '13' \ No newline at end of file