Skip to content

Commit

Permalink
0.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
gambit07 committed Jan 28, 2024
1 parent 6872658 commit e2cf7fb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
47 changes: 27 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # Specify the Node.js version you need

- name: Install NPM dependencies
run: npm install

- name: Zip Files
working-directory: ./
run: zip -r ./module.zip ./*
Expand All @@ -39,16 +31,31 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.zip, ./module.json'
tag: ${{ steps.get-version.outputs.version }}

- name: Release Foundry Package
run: |
API_TOKEN="${{ secrets.FOUNDRY_API_TOKEN }}"
PACKAGE_ID="gambits-premades"
PACKAGE_VERSION="${{ steps.get-version.outputs.version }}"
MANIFEST_URL="https://github.com/gambit07/gambits-premades/releases/latest/download/module.json"
RELEASE_NOTES_URL="https://github.com/gambit07/gambits-premades/releases/tag/${{ steps.get-version.outputs.version }}"
FOUNDRY_MIN_VERSION="11"
FOUNDRY_VERIFIED_VERSION="11"
FOUNDRY_MAX_VERSION="11"
- name: Foundry Release
id: foundry-release
run: node ./update-foundry-package.js
env:
FOUNDRY_API_TOKEN: ${{ secrets.FOUNDRY_API_TOKEN }}
PACKAGE_ID: 'gambits-premades'
PACKAGE_VERSION: '${{ steps.get-version.outputs.version }}'
MANIFEST_URL: 'https://github.com/gambit07/gambits-premades/releases/download/${{ steps.get-version.outputs.version }}/module.json'
RELEASE_NOTES_URL: 'https://github.com/gambit07/gambits-premades/releases/tag/${{ steps.get-version.outputs.version }}'
FOUNDRY_MIN_VERSION: '11'
FOUNDRY_VERIFIED_VERSION: '11'
FOUNDRY_MAX_VERSION: '11'
curl -X POST "https://api.foundryvtt.com/_api/packages/release_version" \
-H "Content-Type: application/json" \
-H "Authorization: ${{ secrets.FOUNDRY_API_TOKEN }}" \
-d '{
"id": "'"gambits-premades"'",
"release": {
"version": "'"${{ steps.get-version.outputs.version }}"'",
"manifest": "'"https://github.com/gambit07/gambits-premades/releases/download/${{ steps.get-version.outputs.version }}/module.json"'",
"notes": "'"https://github.com/gambit07/gambits-premades/releases/tag/${{ steps.get-version.outputs.version }}"'",
"compatibility": {
"minimum": "'"11"'",
"verified": "'"11"'",
"maximum": "'"11"'"
}
}
}'
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "Gambit"
}
],
"version": "0.0.14",
"version": "0.0.15",
"compatibility": {
"minimum": "11",
"verified": "11",
Expand Down

0 comments on commit e2cf7fb

Please sign in to comment.