From 32e42471319fde24cca55d0372ada24519ccd8bc Mon Sep 17 00:00:00 2001 From: "A. Balmaseda" Date: Tue, 7 May 2024 18:06:07 +0200 Subject: [PATCH] Auto-release action --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..667b4ad2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Release to FoundryVTT + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Publish the release to FoundryVTT's package repository. + - name: Publish Module to FoundryVTT Website + id: publish_to_foundry_website + if: ${{ !github.event.release.unpublished && !github.event.release.prerelease }} + uses: cs96and/FoundryVTT-release-package@v1 + with: + package-token: ${{ secrets.FOUNDRY_PACKAGE_TOKEN }} + manifest-url: https://github.com/${{ github.repository }}/releases/download/${{ github.event.release.tag_name }}/system.json + dry-run: 1