GitHub action to publish a FoundyVTT package using the Package Release API
package-token
: The secret token of your package for the FoundryVTT Package Release APImanifest-url
: The URL of the JSON manifest of your package. Please Note: This is not the package manifest URL in your package manifest, which should be pointed to a latest branch. Instead, it should point to a specific release to allow users to download this specific version of your package.
version
: The version of the release. Leave undefined to use theversion
entry from your manifest file.notes-url
: The URL of the release notes for this release of your package. Leave undefined to use thechangelog
entry from your manifest file.dry-run
: Set to any value apart fromfalse
or0
to do a dry-run. Leave undefined or set tofalse
or0
for a proper release.
response-code
: The HTTP response coderesponse-json
: The JSON response
- name: Publish Module to FoundryVTT 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