A Github Action that packs JSON files generated by the FoundryVTT CLI into compendium pack databases for release.
Warning
This action does not work with Windows runners.
Example workflow
# .github/workflows/release.yml
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create Database Packs
uses: aMediocreDad/foundry-db-packer@v0.2.1
with:
inputdir: # The directory which contains the JSON files to pack (required)
packsdir: packs/ # The directory where the compendium packs should exist (optional)
pack_classiclevel: true # <boolean> Whether to pack the class level db files (optional)
pack_nedb: false # <boolean> Whether to pack the nedb db files (optional)
# Do something with the database packs
This action uses @changesets/cli for versioning, esbuild for building and vitest for testing.