Skip to content

v2.17.0

v2.17.0 #12

name: Continuous Delivery
on:
release:
types:
- published
jobs:
release:
name: Binaries
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
args: --config=./.github/golangci.yaml
skip-cache: true
- name: Test
run: go test ./...
- name: Build
run: make release
- name: Upload
run: |
./upload.sh ./bin/script_exporter-darwin-amd64 application/x-binary
./upload.sh ./bin/script_exporter-darwin-arm64 application/x-binary
./upload.sh ./bin/script_exporter-linux-amd64 application/x-binary
./upload.sh ./bin/script_exporter-linux-armv7 application/x-binary
./upload.sh ./bin/script_exporter-linux-arm64 application/x-binary
./upload.sh ./bin/script_exporter-windows-amd64.exe application/x-binary
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}