Skip to content

Commit dcc80fd

Browse files
committed
claude reckons this will work. I miss Concourse.
1 parent c6133e5 commit dcc80fd

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ jobs:
7878
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
7979
outputs:
8080
new_version: ${{ steps.bump.outputs.new_version }}
81-
release_sha: ${{ steps.push.outputs.release_sha }}
8281

8382
steps:
8483
- name: Checkout repository
@@ -117,9 +116,14 @@ jobs:
117116
- name: Create and push tag
118117
id: push
119118
run: |
120-
git tag "v${{ steps.bump.outputs.new_version }}"
121-
git push origin master --follow-tags
122-
echo "release_sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
119+
VERSION="v${{ steps.bump.outputs.new_version }}"
120+
SHA=$(git rev-parse HEAD)
121+
echo "Creating annotated tag $VERSION at $SHA"
122+
git tag -a "$VERSION" -m "Release $VERSION"
123+
git push origin master
124+
git push origin "$VERSION"
125+
echo "release_sha=$SHA" >> "$GITHUB_OUTPUT"
126+
echo "Pushed SHA: $SHA"
123127
124128
build:
125129
name: Build Release Binaries
@@ -140,7 +144,8 @@ jobs:
140144
- name: Checkout repository
141145
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
142146
with:
143-
ref: ${{ needs.release.outputs.release_sha }}
147+
ref: v${{ needs.release.outputs.new_version }}
148+
fetch-tags: true
144149

145150
- name: Setup Rust toolchain
146151
uses: dtolnay/rust-toolchain@439cf607258077187679211f12aa6f19af4a0af7 # stable
@@ -218,8 +223,9 @@ jobs:
218223
- name: Checkout repository
219224
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
220225
with:
221-
ref: ${{ needs.release.outputs.release_sha }}
226+
ref: v${{ needs.release.outputs.new_version }}
222227
fetch-depth: 0
228+
fetch-tags: true
223229

224230
- name: Download all artifacts
225231
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4

0 commit comments

Comments
 (0)