From d587eba5a408dbadecfd0a0582ff18aaa0830b0f Mon Sep 17 00:00:00 2001 From: Dexoron Date: Sat, 5 Sep 2026 21:39:33 +0800 Subject: [PATCH] Update release.yml to use VERSION variable --- .github/workflows/release.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cacb427..e0abac9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1191,6 +1191,7 @@ jobs: - name: Update Formula/dcr.rb run: | VERSION="${{ needs.setup.outputs.version }}" + cat > Formula/dcr.rb < "dcr" - end - resource "man-pages" do - url "https://github.com/dexoron/dcr/releases/download/v#{version}/dcr-man-pages-#{version}.tar.gz" + url "https://github.com/dexoron/dcr/releases/download/v${VERSION}/dcr-man-pages-${VERSION}.tar.gz" sha256 "${{ steps.sha.outputs.man_pages }}" end def install bin.install Dir["dcr*"].first => "dcr" + resource("man-pages").stage do man1.install Dir["usr/share/man/man1/*.1"] end @@ -1326,4 +1326,4 @@ jobs: aws s3 sync dist/ "s3://${{ secrets.R2_BUCKET_NAME }}/${TAG}/" \ --endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \ - --region auto \ No newline at end of file + --region auto