Skip to content

Commit 16faca0

Browse files
committed
fix: restore original release.yml (cargo-dist managed)
1 parent d9756cf commit 16faca0

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -278,41 +278,10 @@ jobs:
278278
279279
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
280280
281-
# Update the Homebrew tap with the new formula
282-
update-homebrew-tap:
283-
needs:
284-
- plan
285-
- host
286-
if: ${{ always() && needs.host.result == 'success' && !fromJson(needs.host.outputs.val).announcement_is_prerelease }}
287-
runs-on: "ubuntu-22.04"
288-
steps:
289-
- name: Update Homebrew tap
290-
env:
291-
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
292-
TAG: ${{ needs.plan.outputs.tag }}
293-
run: |
294-
# Download the generated formula from the release
295-
curl -sL "https://github.com/cv/latest/releases/download/${TAG}/latest.rb" -o latest.rb
296-
297-
# Clone the tap repo
298-
git clone "https://x-access-token:${TAP_GITHUB_TOKEN}@github.com/cv/homebrew-tap.git" tap
299-
cd tap
300-
301-
# Update the formula
302-
cp ../latest.rb Formula/latest.rb
303-
304-
# Commit and push
305-
git config user.name "github-actions[bot]"
306-
git config user.email "github-actions[bot]@users.noreply.github.com"
307-
git add Formula/latest.rb
308-
git commit -m "Update latest to ${TAG}"
309-
git push
310-
311281
announce:
312282
needs:
313283
- plan
314284
- host
315-
- update-homebrew-tap
316285
# use "always() && ..." to allow us to wait for all publish jobs while
317286
# still allowing individual publish jobs to skip themselves (for prereleases).
318287
# "host" however must run to completion, no skipping allowed!

0 commit comments

Comments
 (0)