File tree Expand file tree Collapse file tree 4 files changed +59
-32
lines changed Expand file tree Collapse file tree 4 files changed +59
-32
lines changed Original file line number Diff line number Diff line change
1
+ name : ' go'
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ pull_request :
8
+ types : [opened, synchronize, reopened]
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ # Checkout the repo
15
+ - name : ' Checkout'
16
+ uses : actions/checkout@v2
17
+ # Build Go binaries
18
+ - name : ' Build Go binaries'
19
+ uses : cloudposse/actions/go/build@0.15.0
20
+ env :
21
+ GO111MODULE : on
22
+ # Architectures to build for
23
+ GOX_OSARCH : >-
24
+ windows/386
25
+ windows/amd64
26
+ freebsd/arm
27
+ netbsd/386
28
+ netbsd/amd64
29
+ netbsd/arm
30
+ linux/s390x
31
+ linux/arm
32
+ darwin/386
33
+ darwin/amd64
34
+ linux/386
35
+ linux/amd64
36
+ freebsd/amd64
37
+ freebsd/386
38
+ openbsd/386
39
+ openbsd/amd64
40
+ OUTPUT_PATH : ${{ github.workspace }}/release/${{ github.event.repository.name }}_
41
+ # Run the go tests
42
+ - name : ' Run tests'
43
+ run : find ${{ github.workspace }}; ${{ github.workspace }}/release/${{ github.event.repository.name }}_linux_amd64
44
+ # Upload artifacts for this build
45
+ - name : ' Upload artifacts'
46
+ uses : actions/upload-artifact@v2
47
+ with :
48
+ name : ${{ github.event.repository.name }}
49
+ path : ${{ github.workspace }}/release/*
50
+ # Attach Go binaries to GitHub Release
51
+ - name : ' Attach artifacts to GitHub Release'
52
+ if : ${{ github.event_name == 'release' }}
53
+ uses : cloudposse/actions/github/release-assets@0.15.0
54
+ env :
55
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56
+ INPUT_PATH : ${{ github.workspace }}/release/${{ github.event.repository.name }}_*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ module github.com/cloudposse/tfmask
2
+
3
+ go 1.13
You can’t perform that action at this time.
0 commit comments