diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..62b5cae --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,48 @@ +# taken from +# https://github.com/League-of-Foundry-Developers/FoundryVTT-Module-Template/blob/master/.github/workflows/main.yml + +name: Release Creation + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # get part of the tag after the `v` + - name: Extract tag version number + id: get_version + uses: battila7/get-version-action@v2 + + # Substitute the Manifest and Download URLs in the module.json + - name: Substitute Manifest and Download Links For Versioned Ones + id: sub_manifest_link_version + uses: microsoft/variable-substitution@v1 + with: + files: 'module.json' + env: + version: ${{steps.get_version.outputs.version-without-v}} + url: https://github.com/${{github.repository}} + manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json + download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip + + # Create a zip file with all files required by the module to add to the release + - run: zip -r ./module.zip module.json README.md LICENSE lang/ packs/ scripts/ styles/ templates/ + + # Create a release for this specific version + - name: Update Release with Files + id: create_version_release + uses: ncipollo/release-action@v1 + with: + allowUpdates: true # Set this to false if you want to prevent updating existing releases + name: ${{ github.event.release.name }} + draft: ${{ github.event.release.unpublished }} + prerelease: ${{ github.event.release.prerelease }} + token: ${{ secrets.GITHUB_TOKEN }} + artifacts: './module.json, ./module.zip' + tag: ${{ github.event.release.tag_name }} + body: ${{ github.event.release.body }} \ No newline at end of file diff --git a/penllawen-compendium-table-maker/lang/de.json b/lang/de.json similarity index 100% rename from penllawen-compendium-table-maker/lang/de.json rename to lang/de.json diff --git a/penllawen-compendium-table-maker/lang/en.json b/lang/en.json similarity index 100% rename from penllawen-compendium-table-maker/lang/en.json rename to lang/en.json diff --git a/penllawen-compendium-table-maker/module.json b/module.json similarity index 92% rename from penllawen-compendium-table-maker/module.json rename to module.json index 26207d2..2cf5725 100644 --- a/penllawen-compendium-table-maker/module.json +++ b/module.json @@ -1,9 +1,9 @@ { "name": "penllawen-compendium-table-maker", "title": "Compendium Table Maker (by PenLlawen)", - "description": "Blah blah", + "description": "A tool to automate the creation of quick reference tables from Compendiums", + - "version": "1.0.0", "author": "PenLlawen", "authors": [ @@ -15,9 +15,6 @@ "library": false, "socket": false, - "minimumCoreVersion": "9", - "compatibleCoreVersion": "9", - "languages": [ { "lang": "en", @@ -45,7 +42,10 @@ } ], + "minimumCoreVersion": "9", + "compatibleCoreVersion": "9", + "version": "0.0.1", "url": "https://github.com/richardgaywood/foundry-penllawen-compendium-table-maker", "manifest": "This is auto replaced", "download": "This is auto replaced", diff --git a/penllawen-compendium-table-maker/packs/example-macros.db b/packs/example-macros.db similarity index 100% rename from penllawen-compendium-table-maker/packs/example-macros.db rename to packs/example-macros.db diff --git a/penllawen-compendium-table-maker/scripts/api.js b/scripts/api.js similarity index 100% rename from penllawen-compendium-table-maker/scripts/api.js rename to scripts/api.js diff --git a/penllawen-compendium-table-maker/scripts/build_report.mjs b/scripts/build_report.mjs similarity index 100% rename from penllawen-compendium-table-maker/scripts/build_report.mjs rename to scripts/build_report.mjs diff --git a/penllawen-compendium-table-maker/scripts/compendium_summariser.js b/scripts/compendium_summariser.js similarity index 100% rename from penllawen-compendium-table-maker/scripts/compendium_summariser.js rename to scripts/compendium_summariser.js diff --git a/penllawen-compendium-table-maker/scripts/filter_config.mjs b/scripts/filter_config.mjs similarity index 100% rename from penllawen-compendium-table-maker/scripts/filter_config.mjs rename to scripts/filter_config.mjs diff --git a/penllawen-compendium-table-maker/scripts/init.js b/scripts/init.js similarity index 100% rename from penllawen-compendium-table-maker/scripts/init.js rename to scripts/init.js diff --git a/penllawen-compendium-table-maker/scripts/map_map_list.mjs b/scripts/map_map_list.mjs similarity index 100% rename from penllawen-compendium-table-maker/scripts/map_map_list.mjs rename to scripts/map_map_list.mjs diff --git a/penllawen-compendium-table-maker/styles/summary-journals.css b/styles/summary-journals.css similarity index 100% rename from penllawen-compendium-table-maker/styles/summary-journals.css rename to styles/summary-journals.css diff --git a/penllawen-compendium-table-maker/templates/swade/armor_table.hbs b/templates/swade/armor_table.hbs similarity index 100% rename from penllawen-compendium-table-maker/templates/swade/armor_table.hbs rename to templates/swade/armor_table.hbs diff --git a/penllawen-compendium-table-maker/templates/swade/edge_table.hbs b/templates/swade/edge_table.hbs similarity index 100% rename from penllawen-compendium-table-maker/templates/swade/edge_table.hbs rename to templates/swade/edge_table.hbs diff --git a/penllawen-compendium-table-maker/templates/swade/gear_table.hbs b/templates/swade/gear_table.hbs similarity index 100% rename from penllawen-compendium-table-maker/templates/swade/gear_table.hbs rename to templates/swade/gear_table.hbs diff --git a/penllawen-compendium-table-maker/templates/swade/hindrance_table.hbs b/templates/swade/hindrance_table.hbs similarity index 100% rename from penllawen-compendium-table-maker/templates/swade/hindrance_table.hbs rename to templates/swade/hindrance_table.hbs diff --git a/penllawen-compendium-table-maker/templates/swade/power_table.hbs b/templates/swade/power_table.hbs similarity index 100% rename from penllawen-compendium-table-maker/templates/swade/power_table.hbs rename to templates/swade/power_table.hbs diff --git a/penllawen-compendium-table-maker/templates/swade/shield_table.hbs b/templates/swade/shield_table.hbs similarity index 100% rename from penllawen-compendium-table-maker/templates/swade/shield_table.hbs rename to templates/swade/shield_table.hbs diff --git a/penllawen-compendium-table-maker/templates/swade/skill_table.hbs b/templates/swade/skill_table.hbs similarity index 100% rename from penllawen-compendium-table-maker/templates/swade/skill_table.hbs rename to templates/swade/skill_table.hbs diff --git a/penllawen-compendium-table-maker/templates/swade/weapon_table.hbs b/templates/swade/weapon_table.hbs similarity index 100% rename from penllawen-compendium-table-maker/templates/swade/weapon_table.hbs rename to templates/swade/weapon_table.hbs