diff --git a/.github/workflows/publish-to-fvtt.yml b/.github/workflows/publish-to-fvtt.yml new file mode 100644 index 0000000..fd7eec9 --- /dev/null +++ b/.github/workflows/publish-to-fvtt.yml @@ -0,0 +1,11 @@ +name: Publish new version to foyndry +on: [released] +jobs: + refresh-feed: + runs-on: ubuntu-latest + steps: + - name: Run fvtt apu + uses: JamesIves/fetch-api-data-action@v2 + with: + endpoint: https://api.foundryvtt.com/_api/packages/release_version/ + configuration: '{ "method": "GET", "headers": { "Authorization": "${{ secrets.FVTT_API_TOKEN }}" } "body": { "id": "pf2e-reactive-token-ring", "dry-run": true, "release": { "version": "${{github.event.release.tag_name}}", "manifest": "https://github.com/${{github.repository}}/releases/${{github.event.release.tag_name}}/download/module.json", "notes": "https://github.com/${{github.repository}}/releases/tag/${{github.event.release.tag_name}}" "compatibility": { "minimum": "12", "verified": "12", "maximum": "" } } } }'