Skip to content

Commit

Permalink
Detailing-the-Realm#50: Update workflow templates for system and not …
Browse files Browse the repository at this point in the history
…module.
  • Loading branch information
mattraykowski committed Nov 30, 2021
1 parent 8cc272b commit 71d5389
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 55 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
42 changes: 0 additions & 42 deletions module.json

This file was deleted.

12 changes: 6 additions & 6 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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"
}

0 comments on commit 71d5389

Please sign in to comment.