Skip to content

Commit

Permalink
Merge pull request #75 from kaelad02/packs-cli
Browse files Browse the repository at this point in the history
Use foundryvtt-cli to build compendium packs
  • Loading branch information
kaelad02 authored Sep 13, 2024
2 parents 6374c99 + 6c086f3 commit 32d41c6
Show file tree
Hide file tree
Showing 12 changed files with 2,301 additions and 46 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,19 @@ jobs:
changelog: https://github.com/${{github.repository}}/blob/main/CHANGELOG.md
readme: https://github.com/${{github.repository}}/blob/main/README.md

# Use NPM to build the packs
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build Packs
run: npm run build

# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip module.json LICENSE css/ lang/ packs/ src/ templates/
- run: zip -r ./module.zip module.json LICENSE css/ lang/ packs/ src/ templates/ --exclude "packs/_source/*"

# Create a release for this specific version
- name: Update Release with Files
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"authors": [{ "name": "kaelad", "discord": "kaelad#1693" }],
"version": "0.1",
"compatibility": {
"minimum": "11",
"minimum": "11.315",
"verified": "12"
},
"relationships": {
Expand All @@ -29,7 +29,7 @@
"name": "sample-items",
"label": "AR Message Sample Items",
"system": "dnd5e",
"path": "packs/sample-items.db",
"path": "packs/sample-items",
"type": "Item"
}
],
Expand Down
Loading

0 comments on commit 32d41c6

Please sign in to comment.