chg: [workflow] updated

This commit is contained in:
Alexandre Dulaunoy 2024-09-01 18:04:27 +02:00
parent c019a89cfc
commit 5b7125f844
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -1,19 +1,24 @@
on:
push:
types: [created]
name: build-go-binary
permissions:
contents: write
packages: write
on:
release:
types: [created] # Indicates that it is triggered when a new Release is created
jobs:
release-linux-amd64:
name: release linux/amd64
build-go-binary:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64] # A packaged schema is required
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.30
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.23
binary_name: "mastodon-markdown-archive"
extra_files: README.md