aocli.yml - Update artifact name... again #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Build, test, publish aocli | |
on: | |
push: | |
tags: | |
- 'aocli-v*' | |
jobs: | |
build: | |
name: Publish for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
artifact_name: aocli | |
asset_name: linux-amd64 | |
- os: windows-latest | |
artifact_name: aocli.exe | |
asset_name: windows-amd64 | |
- os: macos-latest | |
artifact_name: aocli | |
asset_name: darwin-amd64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Tidy modules | |
run: go mod tidy | |
- name: Test | |
run: go test -v ./... | |
- name: Build aocli | |
run: go build -v ./cmd/aocli | |
- name: Upload binaries to artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.ref_name }}-${{ github.matrix_os }} | |
path: ./${{ matrix.artifact_name }} |