Skip to content

Commit

Permalink
fix: curl ftw?
Browse files Browse the repository at this point in the history
I.e. try doing it myself using curl.
  • Loading branch information
xdy authored Jan 6, 2024
1 parent 38f78fd commit e00ae94
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
push:
branches: [ master]

#TODO Parse out fvtt_minimum and fvtt_verified from the system.json, for now they're hardcoded.
env:
fvtt_minimum: 11
fvtt_verified: 11.315

jobs:
# test:
# if: github.repository == 'xdy/twodsix-foundryvtt'
Expand Down Expand Up @@ -129,3 +134,27 @@ jobs:
# FVTT_PASSWORD: ${{ secrets.FOUNDRY_ADMIN_PASSWORD }}
# FVTT_MANIFEST_URL: https://github.com/xdy/twodsix-foundryvtt/releases/latest/download/system.json
# FVTT_USE_NEW_PACKAGE_ADMINISTRATION_INTERFACE: true

publish:
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Submit package to FoundryVTT Package Release API
run: |
curl -X POST "https://api.foundryvtt.com/_api/packages/release_version/" \
-H "Content-Type: application/json" \
-H "Authorization: ${{ secrets.FOUNDRYVTT_RELEASE_TOKEN }}" \
-d '{
"id": "twodsix",
"dry-run": false,
"release": {
"version": "${{ github.ref_name }}",
"manifest": "https://github.com/xdy/twodsix-foundryvtt/releases/latest/download/system.json",
"notes": "https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md",
"compatibility": {
"minimum": "${{ env.fvtt_minimum }}",
"verified": "${{ env.fvtt_verified }}"
}
}
}'

0 comments on commit e00ae94

Please sign in to comment.