From 72392cc41698a857c3ebbe117450bb1d7e6ca9ca Mon Sep 17 00:00:00 2001 From: MCJack123 Date: Mon, 1 Jan 2024 22:32:06 -0500 Subject: [PATCH] v2.8: Fixed Homebrew release script --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa3b5393..cc2317d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -158,10 +158,10 @@ jobs: token: ${{ secrets.HOMEBREW_GITHUB_TOKEN }} - name: Update file run: | - sed 's/version "[^"]*"/version "'${GITHUB_REF:1}'"/' 's/sha256 "[^"]*"/sha256 "'$(curl -sL https://github.com/MCJack123/releases/$GITHUB_REF/download/CraftOS-PC.dmg | shasum -a 256 | awk '{print $1;}')'"/' Casks/craftos-pc.rb > tmp.rb + sed -e 's/version "[^"]*"/version "'${GITHUB_REF:1}'"/' -e 's/sha256 "[^"]*"/sha256 "'$(curl -sL https://github.com/MCJack123/releases/$GITHUB_REF/download/CraftOS-PC.dmg | shasum -a 256 | awk '{print $1;}')'"/' Casks/craftos-pc.rb > tmp.rb mv tmp.rb Casks/craftos-pc.rb - name: Upload - run: git push origin master + run: git commit -m $GITHUB_REF && git push origin master release-ubuntu: name: Upload Ubuntu PPA package