-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.16 KB
/
release.yml
File metadata and controls
46 lines (44 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build Release
on:
push:
tags:
- 'v*'
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
publish_binaries:
name: Release Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Publish
uses: wangyoucao577/go-release-action@v1.28
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: codegame
asset_name: codegame-cli-${{matrix.goos}}-${{matrix.goarch}}
extra_files: LICENSE README.md
ldflags: -X "main.version=${{ github.ref_name }}"
md5sum: false
- name: Upload install.bat
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: install.bat
asset_name: install.bat
overwrite: true