Skip to content

Commit 94b90cf

Browse files
committedApr 14, 2023
ci: add release workflow
1 parent 53089d6 commit 94b90cf

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
 

‎.github/workflows/release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
permissions:
6+
contents: write
7+
packages: write
8+
9+
jobs:
10+
releases-matrix:
11+
name: Release Go Binary
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
16+
goos: [linux, windows, darwin]
17+
goarch: ["386", amd64, arm64]
18+
name: ["send", "show"]
19+
exclude:
20+
- goarch: "386"
21+
goos: darwin
22+
- goarch: arm64
23+
goos: windows
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: wangyoucao577/go-release-action@v1
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
goos: ${{ matrix.goos }}
30+
goarch: ${{ matrix.goarch }}
31+
project_path: "./src/apps/${{ matrix.name }}"
32+
binary_name: "git-nostr-${{ matrix.name }}"
33+
extra_files: LICENSE README.md

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
git-nostr-send
2+
git-nostr-show

0 commit comments

Comments
 (0)