Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
akrigline committed Jan 26, 2021
1 parent 19bd931 commit 2b1fa3f
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion src/requestor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(", ");
Expand Down

0 comments on commit 2b1fa3f

Please sign in to comment.