Skip to content

Commit 65d4761

Browse files
committed
Update build.yml
1 parent af2a739 commit 65d4761

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ jobs:
104104
permissions:
105105
contents: write
106106
steps:
107+
- name: Checkout (to update nightly tag)
108+
uses: actions/checkout@v4
109+
with:
110+
fetch-depth: 0
111+
112+
- name: Move 'nightly' tag to this commit
113+
run: |
114+
git config user.name "github-actions[bot]"
115+
git config user.email "github-actions[bot]@users.noreply.github.com"
116+
git tag -f nightly "$GITHUB_SHA"
117+
git push origin nightly --force
118+
107119
- name: Download all packaged artifacts
108120
uses: actions/download-artifact@v4
109121
with:
@@ -143,8 +155,7 @@ jobs:
143155
- name: Publish Nightly Release (upload assets)
144156
uses: softprops/action-gh-release@v2
145157
with:
146-
tag_name: nightly
147-
target_commitish: ${{ github.sha }}
158+
tag_name: nightly # tag now points at $GITHUB_SHA
148159
prerelease: true
149160
draft: false
150161
make_latest: "false"

0 commit comments

Comments
 (0)