Update the draft release procedure to use a different text replacement method (closes #41)

This commit is contained in:
Eldritch-Oliver 2025-09-06 18:59:07 -06:00
parent df9a63073a
commit ca267868a1
2 changed files with 8 additions and 8 deletions

View file

@ -1,7 +1,7 @@
name: Create Draft Release
on: [workflow_dispatch]
jobs:
everything:
draft:
runs-on: ubuntu-latest
steps:
# Checkout the repository
@ -33,13 +33,13 @@ jobs:
- run: npm run build
- run: node scripts/buildCompendia.mjs
- name: Move system.json to a temp file
id: manifest-move
run: mv system.json system.temp.json
- name: Update the download property in the manifest
- name: Update the manifest with the relevant properties
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
run: zip -r release.zip langs module styles templates system.json README.md assets

View file

@ -3,7 +3,7 @@
"title": "Text-Based Actors",
"description": "An intentionally minimalist system that enables you to play rules-light games without getting in your way!",
"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",
"url": "https://github.com/Oliver-Akins/Text-Actors-Foundry",
"compatibility": {