From 998765dd338602db78fea7ff87a763c59a95cf71 Mon Sep 17 00:00:00 2001 From: Sylvain Rabot Date: Sat, 6 Jul 2024 18:46:24 +0200 Subject: [PATCH] Upload build artifacts Signed-off-by: Sylvain Rabot --- .github/workflows/go.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 09d3922..25890d9 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -8,6 +8,10 @@ jobs: build: name: Build runs-on: ubuntu-22.04 + permissions: + id-token: write + contents: read + attestations: write strategy: matrix: go: ["1.22"] @@ -49,3 +53,20 @@ jobs: - name: Crossbuild run: make crossbuild + + - uses: actions/attest-build-provenance@v1 + with: + subject-path: | + dist/* + + - uses: actions/upload-artifact@v4 + with: + name: build + retention-days: 3 + path: | + dist/*-darwin-amd64* + dist/*-darwin-arm64* + dist/*-linux-amd64* + dist/*-linux-arm64* + dist/*-windows-amd64* + dist/*-windows-arm64*