Skip to content
code

GitHub Action

FoundryVTT Release DB Packer

v0.2.2 Latest version

FoundryVTT Release DB Packer

code

FoundryVTT Release DB Packer

Aids in packing FoundryVTT db files for release

Installation

Copy and paste the following snippet into your .yml file.

              

- name: FoundryVTT Release DB Packer

uses: aMediocreDad/foundry-db-packer@v0.2.2

Learn more about this action in aMediocreDad/foundry-db-packer

Choose a version

FoundryVTT Release DB Packer

A Github Action that packs JSON files generated by the FoundryVTT CLI into compendium pack databases for release.

Usage

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

Developing

This action uses @changesets/cli for versioning, esbuild for building and vitest for testing.