-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.91 KB
/
Copy pathbuild.yaml
File metadata and controls
53 lines (51 loc) · 1.91 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
47
48
49
50
51
52
53
name: build
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Make github config
run: curl -sL https://raw.githubusercontent.com/triole/ghwfe/master/sh/make_github_config.sh | bash
-
name: Install Go
env:
TARGET_FOLDER: /home/runner/.local/go
run: curl -sL https://raw.githubusercontent.com/triole/ghwfe/master/sh/go_install.sh | bash
-
name: Add packages in sub folders to GOROOT
env:
GOROOT: /home/runner/.local/go
SOURCE_FOLDER: src
run: curl -sL https://raw.githubusercontent.com/triole/ghwfe/master/sh/go_add_sub_packages.sh | bash
-
name: Build
env:
GOROOT: /home/runner/.local/go
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# APP_NAME: binary_name
SOURCE_FOLDER: src
# TARGET_FOLDER: build
run: curl -sL https://raw.githubusercontent.com/triole/ghwfe/master/sh/go_build.sh | bash
-
name: Gzip assets
# env:
# SOURCE_FOLDER: build
# TARGET_FOLDER: /tmp/assets
# VERSION_COMMAND: date +%y.%m.%d
run: curl -sL https://raw.githubusercontent.com/triole/ghwfe/master/sh/gzip_builds.sh | bash
-
name: Upload release binaries
uses: alexellis/upload-assets@0.3.0
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["/tmp/assets/*"]'