Skip to content

Commit

Permalink
CI: Add SHA256 hash next to nightly release
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jan 31, 2024
1 parent 6ea9831 commit b45fc09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
echo ${{github.sha}} > ${{github.workspace}}/revision.txt
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/build/bin/${{matrix.target}}/*
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/revision.txt
- name: Hash zip
run: |
$ReleaseHash-Full = Get-FileHash -Algorithm SHA256 ${{github.workspace}}/${{matrix.target}}.zip
$ReleaseHash-Full.Hash | Out-File -FilePath ${{github.workspace}}/${{matrix.target}}.zip.sha256
- name: Create Release
if: github.ref == 'refs/heads/master'
Expand All @@ -43,6 +48,6 @@ jobs:
token: ${{ secrets.CI_NIGHTLY }}
name: ${{format('UEVR Nightly {0} ({1})', github.run_number, github.sha)}}
tag: ${{format('nightly-{0}-{1}', github.run_number, github.sha)}}
artifacts: ${{github.workspace}}/${{matrix.target}}.zip
artifacts: "${{github.workspace}}/${{matrix.target}}.zip,${{github.workspace}}/${{matrix.target}}.zip.sha256"
makeLatest: true
bodyFile: ${{github.workspace}}/nightly-body.md

0 comments on commit b45fc09

Please sign in to comment.