mastodon-markdown-archive/.github/workflows/release.yaml

25 lines
653 B
YAML
Raw Permalink Normal View History

2024-09-01 16:04:27 +00:00
name: build-go-binary
2024-09-01 15:42:55 +00:00
2024-09-01 16:04:27 +00:00
on:
release:
types: [created] # Indicates that it is triggered when a new Release is created
2024-09-01 15:42:55 +00:00
jobs:
2024-09-01 16:04:27 +00:00
build-go-binary:
2024-09-01 15:42:55 +00:00
runs-on: ubuntu-latest
2024-09-01 16:04:27 +00:00
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64] # A packaged schema is required
2024-09-01 15:42:55 +00:00
steps:
2024-09-01 16:04:27 +00:00
- uses: actions/checkout@v3
2024-09-01 16:08:20 +00:00
- uses: wangyoucao577/go-release-action@v1.51
2024-09-01 16:04:27 +00:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.23
binary_name: "mastodon-markdown-archive"
extra_files: README.md