-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.29 KB
/
release.yaml
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
47
48
on:
release:
types: [created]
jobs:
upload-downloader:
name: Upload download script
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: upload get-gram.sh to release
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: get-gram.sh
gzip: false
allow_override: true # Update triggered release
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
needs: upload-downloader
strategy:
matrix:
goos: [darwin, linux] # TODO: Add back windows when we fix terminal constants.
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build binary
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
compress_assets: "OFF" # Do not compress binaries
asset_name: "gram-${{ matrix.goos }}-${{ matrix.goarch }}"