Skip to content

Commit

Permalink
make checksums in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Oct 16, 2024
1 parent 7fd4baf commit 3f4fa94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ jobs:
uses: actions/download-artifact@v4
- run: ls -lR
- run: |
make checksums
sha256sum -b credential*/* > checksums.txt
sha256sum -c --strict checksums.txt
- name: Create Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "./credential-*,./checksums.txt"
artifacts: "./credential/*,./credential-windows/*,./checksums.txt"
makeLatest: ${{ !contains(github.ref_name, '-rc') }}
generateReleaseNotes: true
prerelease: ${{ contains(github.ref_name, '-rc') }}
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ build-windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o credential-windows-amd64.exe ./...
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -ldflags "-s -w" -o credential-windows-arm64.exe ./...

checksums:
@echo "Creating checksums..."
sha256sum -b credential-* > checksums.txt
sha256sum -c --strict checksums.txt

# Clean up binaries
clean:
@echo "Cleaning up..."
Expand Down

0 comments on commit 3f4fa94

Please sign in to comment.