Skip to content

Commit

Permalink
Upload checksum (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Mar 8, 2023
1 parent 9d9f95c commit c026110
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,10 @@ jobs:
export GITHUB_TAG_NAME=${GITHUB_REF##*/}
make release
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./nftables-exporter.tgz
asset_name: nftables-exporter.tgz
asset_content_type: application/tar+gzip
token: ${{ secrets.GITHUB_TOKEN }}
files: |
bin/nftables-exporter*
if: ${{ github.event_name == 'release' }}
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ all:
-X 'github.com/metal-stack/v.BuildDate=$(BUILDDATE)'" \
-o bin/$(GONAME) $(GOFILES)
strip bin/$(GONAME)
sha256sum bin/$(GONAME) > bin/$(GONAME).sha256


run: all
go run $(GOFILES) --config=$(shell pwd)/nftables_exporter.yaml
Expand Down

0 comments on commit c026110

Please sign in to comment.