Skip to content

Commit 7a981fe

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

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
 

‎.github/workflows/release.yml

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