diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2727991..81a8e27 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -59,3 +59,13 @@ jobs: asset_path: build/prometheus-jitsi-meet-exporter-linux-amd64 asset_name: prometheus-jitsi-meet-exporter-linux-amd64 asset_content_type: application/octet-stream + - name: Upload release artifacts (shasums) + id: upload-release-asset-sha512sums + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: build/sha512sums.txt + asset_name: sha512sums.txt + asset_content_type: application/octet-stream diff --git a/Makefile b/Makefile index 180b12d..999a7d1 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,7 @@ run: build release: ${GOGET} -u github.com/mitchellh/gox ${GOX} -ldflags "${LD_FLAGS}" ${GOX_ARGS} + shasum -a 512 build/* > build/sha512sums.txt docker: docker build --rm --force-rm --no-cache -t systemli/prometheus-jitsi-meet-exporter .