From 39ce66a26cd37b84aef00a86a8c378e944bb934d Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Tue, 3 Dec 2024 14:30:18 +0100 Subject: [PATCH] Setup auto-publish action --- .gitea/workflows/release.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 3fd6b078..3b8c59f4 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -27,7 +27,7 @@ jobs: env: version: ${{steps.get_version.outputs.version-without-v}} url: https://www.uberwald.me/gitea/${{gitea.repository}} - manifest: https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download//${{github.event.release.tag_name}}/system.json + manifest: https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/system.json download: https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/rddsystem.zip - name: Set up Node.js @@ -62,11 +62,13 @@ jobs: system.json api_key: '${{secrets.ALLOW_PUSH_RELEASE}}' - - name: Publish Module to FoundryVTT Website - uses: https://github.com/Varriount/fvtt-autopublish@latest + - name: Publish to Foundry server + uses: djlechuck/foundryvtt-publish-package-action@v1 with: - username: ${{ secrets.FOUNDRY_ADMIN_USERNAME }} - password: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }} - module-id: foundryvtt-reve-de-dragon - manifest-url: https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download//${{github.event.release.tag_name}}/system.json - manifest-file: system.json \ No newline at end of file + token: ${{ secrets.FOUNDRYVTT_RELEASE_TOKEN }} + id: 'foundryvtt-reve-de-dragon' + version: ${{github.event.release.tag_name}} + manifest: 'https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/system.json' + notes: 'https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/branch/v11/changelog.md' + compatibility-minimum: '12' + compatibility-verified: '12' \ No newline at end of file