Skip to content

Commit

Permalink
Merge pull request #7 from Talaren/addAction
Browse files Browse the repository at this point in the history
add release action.
  • Loading branch information
vt-tom authored Jun 13, 2022
2 parents da206ea + 7b5820d commit e686982
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 82 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}}/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 }}
164 changes: 82 additions & 82 deletions module.json
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"
}

0 comments on commit e686982

Please sign in to comment.