mirror of
https://github.com/adulau/mastodon-markdown-archive.git
synced 2024-11-24 10:57:08 +00:00
chg: [workflow] updated
This commit is contained in:
parent
c019a89cfc
commit
5b7125f844
1 changed files with 19 additions and 14 deletions
29
.github/workflows/release.yaml
vendored
29
.github/workflows/release.yaml
vendored
|
@ -1,19 +1,24 @@
|
||||||
on:
|
name: build-go-binary
|
||||||
push:
|
|
||||||
types: [created]
|
|
||||||
|
|
||||||
permissions:
|
on:
|
||||||
contents: write
|
release:
|
||||||
packages: write
|
types: [created] # Indicates that it is triggered when a new Release is created
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-linux-amd64:
|
build-go-binary:
|
||||||
name: release linux/amd64
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
goos: [linux, windows, darwin]
|
||||||
|
goarch: [amd64, arm64] # A packaged schema is required
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v3
|
||||||
- uses: wangyoucao577/go-release-action@v1
|
- uses: wangyoucao577/go-release-action@v1.30
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: linux
|
goos: ${{ matrix.goos }}
|
||||||
goarch: amd64
|
goarch: ${{ matrix.goarch }}
|
||||||
|
goversion: 1.23
|
||||||
|
binary_name: "mastodon-markdown-archive"
|
||||||
|
extra_files: README.md
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue