From 756f3601d88d08c83ed160fe716d5dd4da0e3c17 Mon Sep 17 00:00:00 2001 From: Lucas Metzen <45624015+lucasmetzen@users.noreply.github.com> Date: Thu, 26 Dec 2024 23:43:39 +0100 Subject: [PATCH] Add workflow step to publish release to Foundry GitHub action: https://github.com/cs96and/FoundryVTT-release-package This will avoid having to manually add new releases to the package page: https://foundryvtt.com/packages/lame-messenger --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b30b753..cb1a300 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -128,3 +128,13 @@ jobs: artifacts: './module.json, ./module.zip' tag: ${{ github.event.release.tag_name }} body: ${{ github.event.release.body }} + + # Publish the release to the Foundry VTT package page and trigger Discord bot to announce it in #package-release. + - name: Publish Module to Foundry VTT Website + id: publish-to-foundry-website + uses: cs96and/FoundryVTT-release-package@v1 + with: + package-token: ${{ secrets.PACKAGE_TOKEN }} + manifest-url: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.json + # TODO: Remove dry-run setting after having confirmed it works the first time: + dry-run: true