Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FVTT 0.8.8 Fixes #17

Closed
wants to merge 14 commits into from
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 src/

# 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 }}
18 changes: 9 additions & 9 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
"description": "Rotates Tokens and provide indicators for direction based on movement",
"version": "2.0.3",
"author": "Eadorin ([email protected])",
"esmodules": ["about-face.js"],
"compatibleCoreVersion": "0.7.9",
"minimumCoreVersion": "0.6.0",
"manifest": "https://raw.githubusercontent.com/League-of-Foundry-Developers/about-face/master/src/module.json",
"download": "https://github.com/League-of-Foundry-Developers/about-face/releases/download/v2.0.3/about-face-v2.0.3.zip",
"esmodules": ["src/about-face.js"],
"compatibleCoreVersion": "0.8.8",
"minimumCoreVersion": "0.8.8",
"manifest": "https://github.com/League-of-Foundry-Developers/about-face/releases/latest/download/module.json",
"download": "https://github.com/League-of-Foundry-Developers/about-face/releases/latest/download/module.zip",
"url": "https://github.com/League-of-Foundry-Developers/about-face",
"changelog": "https://github.com/League-of-Foundry-Developers/about-face/blob/v2.0.3/changelog.md",
"changelog": "https://github.com/League-of-Foundry-Developers/about-face/blob/master/changelog.md",
"languages": [
{
"lang": "en",
"name": "English",
"path": "lang/en.json"
"path": "src/lang/en.json"
},
{
"lang": "pt-BR",
"name": "Português (Brasil)",
"path": "lang/pt-BR.json"
"path": "src/lang/pt-BR.json"
},
{
"lang": "es",
"name": "Español",
"path": "lang/es.json"
"path": "src/lang/es.json"
}
]
}
Loading