Skip to content

Commit 0241ed9

Browse files
committedOct 22, 2024
Add sha256sum to nightly workflow
1 parent 2875877 commit 0241ed9

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed
 

‎.github/workflows/nightly-build.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
git push origin --tags
6666
}
6767
68-
standard:
68+
release:
6969
name: Nu
7070
needs: prepare
7171
strategy:
@@ -181,6 +181,30 @@ jobs:
181181
env:
182182
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
183183

184+
sha256sum:
185+
needs: release
186+
name: Create Sha256sum
187+
runs-on: ubuntu-latest
188+
if: github.repository == 'nushell/nightly'
189+
steps:
190+
- name: Download Release Archives
191+
env:
192+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
193+
run: >-
194+
gh release download ${{ github.ref_name }}
195+
--repo ${{ github.repository }}
196+
--pattern '*'
197+
--dir release
198+
- name: Create Checksums
199+
run: cd release && shasum -a 256 * > ../SHA256SUMS
200+
- name: Publish Checksums
201+
uses: softprops/action-gh-release@v2.0.8
202+
with:
203+
draft: true
204+
files: SHA256SUMS
205+
env:
206+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
207+
184208
cleanup:
185209
name: Cleanup
186210
# Should only run in nushell/nightly repo

0 commit comments

Comments
 (0)
Please sign in to comment.