Skip to content

Commit 4f3115d

Browse files
committed
Fix macOS release step
1 parent 0e38e43 commit 4f3115d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/release.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ jobs:
157157
steps:
158158
- uses: actions/checkout@v2
159159
with:
160-
repository: ${{ secrets.HOMEBREW_REPO }}
161-
ref: main
162-
token: ${{ secrets.GH_TOKEN }}
160+
path: ./ipatool
163161
- uses: actions/download-artifact@v2
164162
with:
165163
name: ipatool-${{ needs.get_version.outputs.version }}-macos-arm64
@@ -176,8 +174,8 @@ jobs:
176174
FILE: ipatool-${{ needs.get_version.outputs.version }}-macos-amd64
177175
- id: sha256
178176
run: |
179-
SHA256_ARM64=$(./tools/sha256sum.sh ipatool-${{ needs.get_version.outputs.version }}-macos-arm64.tar.gz)
180-
SHA256_AMD64=$(./tools/sha256sum.sh ipatool-${{ needs.get_version.outputs.version }}-macos-amd64.tar.gz)
177+
SHA256_ARM64=$(./ipatool/tools/sha256sum.sh ipatool-${{ needs.get_version.outputs.version }}-macos-arm64.tar.gz)
178+
SHA256_AMD64=$(./ipatool/tools/sha256sum.sh ipatool-${{ needs.get_version.outputs.version }}-macos-amd64.tar.gz)
181179
echo $SHA256_ARM64 > ipatool-${{ needs.get_version.outputs.version }}-macos-arm64.tar.gz.sha256sum
182180
echo $SHA256_AMD64 > ipatool-${{ needs.get_version.outputs.version }}-macos-amd64.tar.gz.sha256sum
183181
echo ::set-output name=sha256_arm64::$SHA256_ARM64
@@ -189,7 +187,14 @@ jobs:
189187
tag: ${{ github.ref }}
190188
overwrite: false
191189
file_glob: true
190+
- uses: actions/checkout@v2
191+
with:
192+
repository: ${{ secrets.HOMEBREW_REPO }}
193+
ref: main
194+
token: ${{ secrets.GH_TOKEN }}
195+
path: homebrew-repo
192196
- run: |
197+
cd homebrew-repo
193198
sed -i "3s/.*/ sha256 \"$SHA256_ARM64\"/" Casks/ipatool.rb
194199
sed -i "4s/.*/ url \"https:\/\/github.com\/majd\/ipatool\/releases\/download\/v${{ needs.get_version.outputs.version }}\/ipatool-${{ needs.get_version.outputs.version }}-macos-arm64.tar.gz\"/" Casks/ipatool.rb
195200
sed -i "5s/.*/ binary \"bin\/ipatool-${{ needs.get_version.outputs.version }}-macos-arm64\", target: \"ipatool\"/" Casks/ipatool.rb

0 commit comments

Comments
 (0)