From 2b1fa3fa2134da86917f4d5e59c508dfebc1c2c9 Mon Sep 17 00:00:00 2001 From: akrigline Date: Mon, 25 Jan 2021 21:41:19 -0500 Subject: [PATCH] add release workflow --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ README.md | 1 + module.json | 6 +++--- src/requestor.js | 2 +- 4 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fea4a3f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: Release Creation + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@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: ${{github.event.release.tag_name}} + 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 css/ src/ lang/ images/ 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: false + prerelease: false + 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/README.md b/README.md index 9a83456..aec7433 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,4 @@ This work is licensed under Foundry Virtual Tabletop [EULA - Limited License Agr Japanese translation by `@Brother Sharp` German translation by `@Acd-Jake` Portuguese translation by `@rinnocenti` +Spanish translation by `@SanaRinomi` \ No newline at end of file diff --git a/module.json b/module.json index f863b3c..14505e3 100644 --- a/module.json +++ b/module.json @@ -4,7 +4,7 @@ "title": "Let Me Roll That For You!", "description": "Ask your players to make rolls for you.", "version": "1.5", - "author": "KaKaRoTo, iotech, Limping Ninja, Rughalt", + "author": "KaKaRoTo, iotech, Limping Ninja, Rughalt, Calego", "scripts": ["./src/lmrtfy.js", "./src/requestor.js", "./src/roller.js"], "styles": ["/css/lmrtfy.css"], "packs": [], @@ -55,8 +55,8 @@ }], "socket": true, "url": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy", - "manifest": "https://raw.githubusercontent.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/master/module.json", - "download": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/archive/v1.5.zip", + "manifest": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/releases/latest/download/module.json", + "download": "https://github.com/League-of-Foundry-Developers/fvtt-module-lmrtfy/releases/latest/download/module.zip", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.8.0" } diff --git a/src/requestor.js b/src/requestor.js index c47857e..9af25fb 100644 --- a/src/requestor.js +++ b/src/requestor.js @@ -155,7 +155,7 @@ class LMRTFYRequestor extends FormApplication { initiative: formData['extra-initiative'], perception: formData['extra-perception'] } - //console.log("LMRTFY socket send : ", socketData) + // console.log("LMRTFY socket send : ", socketData) if (saveAsMacro) { const actorTargets = actors.map(a => game.actors.get(a)).filter(a => a).map(a => a.name).join(", ");