Skip to content

Bump Chart to 0.6.0 #41

Bump Chart to 0.6.0

Bump Chart to 0.6.0 #41

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
goos: ["linux"]
goarch: ["amd64", "arm64"]
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: go build -o "livebox-exporter-${GOOS}-${GOARCH}" main.go
- uses: actions/upload-artifact@v4
with:
name: livebox-exporter-${{ matrix.goos }}-${{ matrix.goarch }}
path: livebox-exporter-${{ matrix.goos }}-${{ matrix.goarch }}
retention-days: 1
upload:
runs-on: ubuntu-latest
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
artifacts/*