Update the draft release procedure to use a different text replacement method (closes #41)
This commit is contained in:
parent
df9a63073a
commit
ca267868a1
2 changed files with 8 additions and 8 deletions
14
.github/workflows/draft-release.yaml
vendored
14
.github/workflows/draft-release.yaml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
name: Create Draft Release
|
name: Create Draft Release
|
||||||
on: [workflow_dispatch]
|
on: [workflow_dispatch]
|
||||||
jobs:
|
jobs:
|
||||||
everything:
|
draft:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repository
|
# Checkout the repository
|
||||||
|
|
@ -33,13 +33,13 @@ jobs:
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: node scripts/buildCompendia.mjs
|
- run: node scripts/buildCompendia.mjs
|
||||||
|
|
||||||
- name: Move system.json to a temp file
|
- name: Update the manifest with the relevant properties
|
||||||
id: manifest-move
|
|
||||||
run: mv system.json system.temp.json
|
|
||||||
|
|
||||||
- name: Update the download property in the manifest
|
|
||||||
id: manifest-update
|
id: manifest-update
|
||||||
run: cat system.temp.json | jq -r --tab '.download = "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"' > system.json
|
uses: microsoft/variable-substitution@v1
|
||||||
|
with:
|
||||||
|
files: "system.json"
|
||||||
|
env:
|
||||||
|
download: "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"
|
||||||
|
|
||||||
- name: Create the zip
|
- name: Create the zip
|
||||||
run: zip -r release.zip langs module styles templates system.json README.md assets
|
run: zip -r release.zip langs module styles templates system.json README.md assets
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
"title": "Text-Based Actors",
|
"title": "Text-Based Actors",
|
||||||
"description": "An intentionally minimalist system that enables you to play rules-light games without getting in your way!",
|
"description": "An intentionally minimalist system that enables you to play rules-light games without getting in your way!",
|
||||||
"version": "2.2.1",
|
"version": "2.2.1",
|
||||||
"download": "https://github.com/Oliver-Akins/Text-Actors-Foundry/releases/latest/download/release.zip",
|
"download": "#{DOWNLOAD}#",
|
||||||
"manifest": "https://github.com/Oliver-Akins/Text-Actors-Foundry/releases/latest/download/system.json",
|
"manifest": "https://github.com/Oliver-Akins/Text-Actors-Foundry/releases/latest/download/system.json",
|
||||||
"url": "https://github.com/Oliver-Akins/Text-Actors-Foundry",
|
"url": "https://github.com/Oliver-Akins/Text-Actors-Foundry",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue