mirror of
https://github.com/eko/pihole-exporter.git
synced 2024-11-28 12:16:18 +01:00
Merge pull request #102 from darmiel/patch-1
feat: include sha256sum for release files
This commit is contained in:
commit
58b8396f9b
16
.github/workflows/tag.yml
vendored
16
.github/workflows/tag.yml
vendored
@ -107,6 +107,7 @@ jobs:
|
|||||||
- name: Download go dependencies
|
- name: Download go dependencies
|
||||||
run: go get -t -v ./...
|
run: go get -t -v ./...
|
||||||
|
|
||||||
|
# Release File
|
||||||
- name: Create release
|
- name: Create release
|
||||||
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags "-s -w" -o pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }} ./
|
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags "-s -w" -o pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }} ./
|
||||||
|
|
||||||
@ -120,3 +121,18 @@ jobs:
|
|||||||
asset_path: ./pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }}
|
asset_path: ./pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }}
|
||||||
asset_name: pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }}
|
asset_name: pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }}
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
|
# SHA256 Sum File
|
||||||
|
- name: Create SHA256 sum
|
||||||
|
run: sha256sum pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }} > pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }}.sha256.txt
|
||||||
|
|
||||||
|
- name: Upload release assets
|
||||||
|
id: upload-release-sum-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ needs.release.outputs.upload_url }}${{ matrix.extension }}.sha256.txt
|
||||||
|
asset_path: ./pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }}.sha256.txt
|
||||||
|
asset_name: pihole_exporter-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.extension }}.sha256.txt
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
Loading…
Reference in New Issue
Block a user