From 71d5389d88788f2cfb5506c66f4ff1b9289e8c48 Mon Sep 17 00:00:00 2001 From: Matt Raykowski Date: Tue, 30 Nov 2021 12:21:06 -0600 Subject: [PATCH] #50: Update workflow templates for system and not module. --- .github/workflows/main.yml | 14 ++++++------- module.json | 42 -------------------------------------- system.json | 12 +++++------ 3 files changed, 13 insertions(+), 55 deletions(-) delete mode 100644 module.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bdac2b2..bf12b26 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,20 +15,20 @@ jobs: id: get_version uses: battila7/get-version-action@v2 - # Substitute the Manifest and Download URLs in the module.json + # Substitute the Manifest and Download URLs in the system.json - name: Substitute Manifest and Download Links For Versioned Ones id: sub_manifest_link_version uses: microsoft/variable-substitution@v1 with: - files: 'module.json' + files: 'system.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 + manifest: https://github.com/${{github.repository}}/releases/latest/download/system.json + download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/system.zip - # 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/ module/ templates/ lang/ imgs/ icons/ + # Create a zip file with all files required by the system to add to the release + - run: zip -r ./system.zip system.json LICENSE css/ module/ templates/ lang/ imgs/ icons/ # Create a release for this specific version - name: Update Release with Files @@ -40,6 +40,6 @@ jobs: draft: ${{ github.event.release.unpublished }} prerelease: ${{ github.event.release.prerelease }} token: ${{ secrets.GITHUB_TOKEN }} - artifacts: './module.json, ./module.zip' + artifacts: './system.json, ./system.zip' tag: ${{ github.event.release.tag_name }} body: ${{ github.event.release.body }} \ No newline at end of file diff --git a/module.json b/module.json deleted file mode 100644 index 34dc263..0000000 --- a/module.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "svnsea2e", - "title": "7th Sea Second Edition (Unofficial)", - "description": "The 7th Sea Second Edition (Unofficial) system for FoundryVTT!", - "version": "*** THIS IS GENERATED ***", - "minimumCoreVersion": "0.7.0", - "compatibleCoreVersion": "0.7.9", - "templateVersion": 2, - "author": "psychoph", - "esmodules": ["module/svnsea2e.js"], - "styles": ["css/svnsea2e.css"], - "languages": [ - { - "lang": "en", - "name": "English", - "path": "lang/en.json" - }, - { - "lang": "de", - "name": "German", - "path": "lang/de.json" - }, - { - "lang": "fr", - "name": "French", - "path": "lang/fr.json" - }, - { - "lang": "es", - "name": "Spanish", - "path": "lang/es.json" - } - ], - "gridDistance": 5, - "gridUnits": "ft", - "primaryTokenAttribute": "wounds", - "secondaryTokenAttribute": "dwounds", - "url": "*** THIS IS GENERATED ***", - "manifest": "*** THIS IS GENERATED ***", - "download": "*** THIS IS GENERATED ***", - "license": "MIT" -} diff --git a/system.json b/system.json index ad63ec9..c1542cb 100644 --- a/system.json +++ b/system.json @@ -2,9 +2,9 @@ "name": "svnsea2e", "title": "7th Sea Second Edition (Unofficial)", "description": "The 7th Sea Second Edition (Unofficial) system for FoundryVTT!", - "version": 2.7, + "version": "*** THIS IS GENERATED ***", "minimumCoreVersion": "0.7.0", - "compatibleCoreVersion": "0.7.9", + "compatibleCoreVersion": "0.8.9", "templateVersion": 2, "author": "psychoph", "esmodules": ["module/svnsea2e.js"], @@ -35,8 +35,8 @@ "gridUnits": "ft", "primaryTokenAttribute": "wounds", "secondaryTokenAttribute": "dwounds", - "url": "https://github.com/Detailing-the-Realm/svnsea2e/", - "manifest": "https://raw.githubusercontent.com/Detailing-the-Realm/svnsea2e/master/system.json", - "download": "https://github.com/Detailing-the-Realm/svnsea2e/archive/2.7.zip", - "license": "LICENSE" + "url": "*** THIS IS GENERATED ***", + "manifest": "*** THIS IS GENERATED ***", + "download": "*** THIS IS GENERATED ***", + "license": "MIT" }