Skip to content

Commit

Permalink
Merge pull request #13 from riesinger/binary-release
Browse files Browse the repository at this point in the history
Binary releases
  • Loading branch information
riesinger committed Jul 9, 2024
2 parents 13cafdc + 9c69d51 commit ec60b85
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/binary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Binary
on:
workflow_dispatch:
push:
branches: ["main"]
# Publish semver tags as releases.
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: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
make static BIN=plausible-exporter-${{matrix.goos}}-${{matrix.goarch}}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: myapp-${{ matrix.goos }}-${{ matrix.goarch }}
path: myapp-${{ matrix.goos }}-${{ matrix.goarch }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/plausible-exporter
/plausible-exporter-*
/.env.*
/config.yaml

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/riesinger/plausible-exporter

go 1.19
go 1.22

require (
github.com/mitchellh/mapstructure v1.5.0
Expand Down

0 comments on commit ec60b85

Please sign in to comment.