-
Notifications
You must be signed in to change notification settings - Fork 18
45 lines (38 loc) · 1004 Bytes
/
go.yml
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
name: Go
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.15
- name: Test
run: go test -v ./downloader # There is only a test in this folder
- name: Build
if: success()
run: |
GOOS=windows go build -ldflags "-s -w"
GOOS=darwin go build -o gitmoo-goog-osx -ldflags "-s -w"
go build -ldflags "-s -w" -o gitmoo-goog
cd installer
go build
./installer
cd ..
zip gitmoo-goog.zip installer/*.deb gitmoo-goog gitmoo-goog-osx gitmoo-goog.exe
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
artifacts: "gitmoo-goog.zip"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true