From ca267868a129bfc2d48c74ec91f86fb60ce3172d Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sat, 6 Sep 2025 18:59:07 -0600 Subject: [PATCH] Update the draft release procedure to use a different text replacement method (closes #41) --- .github/workflows/draft-release.yaml | 14 +++++++------- system.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index 1ac8e85..ad2b271 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -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 diff --git a/system.json b/system.json index 8c1dfca..e3bb983 100644 --- a/system.json +++ b/system.json @@ -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": {