-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Talaren/addAction
add release action.
- Loading branch information
Showing
2 changed files
with
122 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}/vttoms-tower-map.zip | ||
|
||
# Create a zip file with all files required by the module to add to the release | ||
- run: zip -r ./vttoms-tower-map.zip module.json README.md scripts/ packs maps | ||
|
||
# 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, ./vttoms-tower-map.zip' | ||
tag: ${{ github.event.release.tag_name }} | ||
body: ${{ github.event.release.body }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,84 @@ | ||
{ | ||
"name": "vttoms-tower-map", | ||
"title": "VTToms Tower Map", | ||
"description": "Eine Karte für den Angriff oder die Verteidigung eines Turmes. Die Karte wurde erstellt mit Dungeon Alchemist.", | ||
"version": "1.5.2", | ||
"minimumCoreVersion": "9", | ||
"compatibleCoreVersion": "9", | ||
"author": "VTTom", | ||
"authors": [ | ||
{ | ||
"name": "VTTom", | ||
"discord": "vttom#9720" | ||
} | ||
], | ||
"packs": [ | ||
{ | ||
"name": "maps", | ||
"label": "vttoms-tower-map-maps", | ||
"path": "/packs/maps.db", | ||
"entity": "Scene", | ||
"type": "Scene" | ||
}, | ||
{ | ||
"name": "journals", | ||
"label": "vttoms-tower-map-journals", | ||
"path": "/packs/journals.db", | ||
"entity": "JournalEntry", | ||
"type": "JournalEntry" | ||
}, | ||
{ | ||
"name": "macros", | ||
"label": "vttoms-tower-map-macros", | ||
"path": "/packs/macros.db", | ||
"entity": "Macro", | ||
"type": "Macro" | ||
}, | ||
{ | ||
"name": "playlists", | ||
"label": "vttoms-tower-map-playlists", | ||
"path": "/packs/playlists.db", | ||
"entity": "Playlist", | ||
"type": "Playlist" | ||
} | ||
], | ||
"esmodules": [ | ||
"./scripts/init.js" | ||
], | ||
"dependencies": [ | ||
{ | ||
"name": "scene-packer", | ||
"manifest": "https://github.com/League-of-Foundry-Developers/scene-packer/releases/latest/download/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "multilevel-tokens", | ||
"manifest": "https://raw.githubusercontent.com/grandseiken/foundryvtt-multilevel-tokens/master/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "levels", | ||
"manifest": "https://github.com/theripper93/Levels/releases/latest/download/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "betterroofs", | ||
"manifest": "https://github.com/theripper93/Better-Roofs/releaseslatest/download/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "lib-wrapper", | ||
"manifest": "https://github.com/ruipin/fvtt-lib-wrapper/releases/latest/download/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "wall-height", | ||
"manifest": "https://github.com/theripper93/wall-height/releases/latest/download/module.json", | ||
"type": "module" | ||
} | ||
], | ||
"url": "", | ||
"manifest": "https://raw.githubusercontent.com/vt-tom/vttoms-tower-map/main/module.json", | ||
"download": "https://github.com/vt-tom/vttoms-tower-map/releases/download/1.5.2/vttoms-tower-map-1.5.2.zip", | ||
"manifestPlusVersion": "1.2.0" | ||
"name": "vttoms-tower-map", | ||
"title": "VTToms Tower Map", | ||
"description": "Eine Karte für den Angriff oder die Verteidigung eines Turmes. Die Karte wurde erstellt mit Dungeon Alchemist.", | ||
"version": "1.5.2", | ||
"minimumCoreVersion": "9", | ||
"compatibleCoreVersion": "9", | ||
"author": "VTTom", | ||
"authors": [ | ||
{ | ||
"name": "VTTom", | ||
"discord": "vttom#9720" | ||
} | ||
], | ||
"packs": [ | ||
{ | ||
"name": "maps", | ||
"label": "vttoms-tower-map-maps", | ||
"path": "/packs/maps.db", | ||
"entity": "Scene", | ||
"type": "Scene" | ||
}, | ||
{ | ||
"name": "journals", | ||
"label": "vttoms-tower-map-journals", | ||
"path": "/packs/journals.db", | ||
"entity": "JournalEntry", | ||
"type": "JournalEntry" | ||
}, | ||
{ | ||
"name": "macros", | ||
"label": "vttoms-tower-map-macros", | ||
"path": "/packs/macros.db", | ||
"entity": "Macro", | ||
"type": "Macro" | ||
}, | ||
{ | ||
"name": "playlists", | ||
"label": "vttoms-tower-map-playlists", | ||
"path": "/packs/playlists.db", | ||
"entity": "Playlist", | ||
"type": "Playlist" | ||
} | ||
], | ||
"esmodules": [ | ||
"./scripts/init.js" | ||
], | ||
"dependencies": [ | ||
{ | ||
"name": "scene-packer", | ||
"manifest": "https://github.com/League-of-Foundry-Developers/scene-packer/releases/latest/download/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "multilevel-tokens", | ||
"manifest": "https://raw.githubusercontent.com/grandseiken/foundryvtt-multilevel-tokens/master/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "levels", | ||
"manifest": "https://github.com/theripper93/Levels/releases/latest/download/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "betterroofs", | ||
"manifest": "https://github.com/theripper93/Better-Roofs/releaseslatest/download/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "lib-wrapper", | ||
"manifest": "https://github.com/ruipin/fvtt-lib-wrapper/releases/latest/download/module.json", | ||
"type": "module" | ||
}, | ||
{ | ||
"name": "wall-height", | ||
"manifest": "https://github.com/theripper93/wall-height/releases/latest/download/module.json", | ||
"type": "module" | ||
} | ||
], | ||
"url": "", | ||
"manifest": "https://github.com/vt-tom/vttoms-tower-map/releases/latest/download/module.json", | ||
"download": "https://github.com/vt-tom/vttoms-tower-map/releases/download/1.5.3/vttoms-tower-map.zip", | ||
"manifestPlusVersion": "1.2.0" | ||
} |