Skip to content

v0.12.0

v0.12.0 #12

Workflow file for this run

name: Build and Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.21]
os: [linux, darwin]
arch: [amd64, arm64]
include:
- os: darwin
arch: amd64
goos: darwin
goarch: amd64
- os: darwin
arch: arm64
goos: darwin
goarch: arm64
- os: linux
arch: amd64
goos: linux
goarch: amd64
- os: linux
arch: arm64
goos: linux
goarch: arm64
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Check out code
uses: actions/checkout@v4
- name: Build
run: |
env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v -o helmfile-nix-${{ matrix.os }}-${{ matrix.arch }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./helmfile-nix-${{ matrix.os }}-${{ matrix.arch }}
asset_name: helmfile-nix-${{ matrix.os }}-${{ matrix.arch }}
asset_content_type: application/octet-stream