Commit 04d3840 1 parent 59467ec commit 04d3840 Copy full SHA for 04d3840
File tree 1 file changed +59
-0
lines changed
1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ name: Go
2
+ on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+ jobs:
7
+
8
+ build:
9
+ name: Build
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+
13
+ - name: Set up Go 1.13
14
+ uses: actions/setup-go@v1
15
+ with:
16
+ go-version: 1.13
17
+ id: go
18
+
19
+ - name: Use Node.js 12.x
20
+ uses: actions/setup-node@v1
21
+ with:
22
+ node-version: 12.x
23
+
24
+ - name: Extract branch name
25
+ shell: bash
26
+ run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
27
+ id: extract_branch
28
+
29
+ - name: Extract repository name
30
+ shell: bash
31
+ run: echo "##[set-output name=repo;]$(echo ${GITHUB_REPOSITORY##*/})"
32
+ id: extract_repo
33
+
34
+ - name: Check out code into the Go module directory
35
+ uses: actions/checkout@v1
36
+
37
+ - name: Get dependencies
38
+ run: |
39
+ go mod download
40
+
41
+ - name: Build
42
+ run: |
43
+ GOOS=linux GOARCH=amd64 go build -v -o ${GITHUB_REPOSITORY##*/}-linux-x64 ./...
44
+ GOOS=linux GOARCH=arm GOARM=5 go build -v -o ${GITHUB_REPOSITORY##*/}-linux-armv5 ./...
45
+ GOOS=linux GOARCH=mipsle go build -v -o ${GITHUB_REPOSITORY##*/}-linux-mipsle ./...
46
+ GOOS=windows GOARCH=amd64 go build -v -o ${GITHUB_REPOSITORY##*/}-win32-x64 ./...
47
+ GOOS=windows GOARCH=386 go build -v -o ${GITHUB_REPOSITORY##*/}-win32-ia32 ./...
48
+ GOOS=darwin GOARCH=amd64 go build -v -o ${GITHUB_REPOSITORY##*/}-darwin-x64 ./...
49
+
50
+ - name: Generate changelog
51
+ run: |
52
+ npm install -g conventional-changelog-cli
53
+ conventional-changelog -p angular -i CHANGELOG.md -s -r 0 -v
54
+
55
+ - uses: ncipollo/release-action@v1
56
+ with:
57
+ artifacts: ${{ steps.extract_repo.outputs.repo }}-*
58
+ bodyFile: "CHANGELOG.md"
59
+ token: ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments