Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,57 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

build-binaries:
needs: [ "generate-version" ]
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64

steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Build binary
env:
CGO_ENABLED: "0"
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: go build -ldflags="-s -w" -o vcverifier-${{ matrix.goos }}-${{ matrix.goarch }} .

- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: vcverifier-${{ matrix.goos }}-${{ matrix.goarch }}
path: vcverifier-${{ matrix.goos }}-${{ matrix.goarch }}

git-release:
needs:
- generate-version
- vcverifier
- build-binaries

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v2

- name: Download all binary artifacts
uses: actions/download-artifact@v4
with:
path: release-assets
pattern: vcverifier-*
merge-multiple: true

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -96,3 +136,4 @@ jobs:
title: ${{ needs.generate-version.outputs.version }}
files: |
LICENSE
release-assets/vcverifier-*
Loading
Loading