Skip to content

Commit

Permalink
Merge pull request dmdorman#839 from aeauseth/main
Browse files Browse the repository at this point in the history
publishing a release packs compendium files from _source
  • Loading branch information
aeauseth authored Mar 11, 2024
2 parents eb6d979 + 35d12ca commit 97f1e7a
Show file tree
Hide file tree
Showing 3 changed files with 506 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ jobs:
- name: validate formatting (via prettier) and perform static analysis (via eslint)
run: npm run validate

- name: Pack packs
run: |
mkdir -p ./Data
fvtt configure set dataPath "./Data"
fvtt package workon "hero6efoundryvttv2" --type "System"
if [ -z "$(ls -A ./packs)" ]; then
echo "No Packs... skipping"
else
echo "Packing packs"
cd ./packs
for f in *; do
if [ -d "$f" ]; then
fvtt package pack -n "$f" --in "./$f/_source" --out ./
fi
done
fi
- name: Update release version in system.json
run: |
sed -i 's|"manifest": "[^"]*",|"manifest": "https://github.com/dmdorman/hero6e-foundryvtt/releases/download/${{ needs.check_release.outputs.release }}/system.json",|' system.json
Expand Down
Loading

0 comments on commit 97f1e7a

Please sign in to comment.