Skip to content

v1.70.0

v1.70.0 #89

Workflow file for this run

name: Release binary builder
on:
release:
types: [published]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
permissions:
attestations: write
contents: write
id-token: write
packages: write
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: wangyoucao577/go-release-action@481a2c1a0f1be199722e3e9b74d7199acafc30a8 # v1.53
id: go_release
with:
goversion: go.mod
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: dependabot
project_path: cmd/dependabot
ldflags: >-
-X github.com/dependabot/cli/cmd/dependabot/internal/cmd.version=${{ github.event.release.tag_name }}
- uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.3.3
with:
subject-path: |
${{ steps.go_release.outputs.release_asset_dir }}/*
dependabot-${{ github.ref_name}}-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
dependabot-${{ github.ref_name}}-${{ matrix.goos }}-${{ matrix.goarch }}.zip