File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Gitconvex build deploy
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+
12
+ - name : Set up Go 1.x
13
+ uses : actions/setup-go@v2
14
+ with :
15
+ go-version : ^1.13
16
+ id : go
17
+
18
+ - name : Check out code into the Go module directory
19
+ uses : actions/checkout@v2
20
+
21
+ - name : Get dependencies
22
+ run : |
23
+ go get -v -t -d ./...
24
+
25
+ - name : Running Test Cases
26
+ run : export GOTESTENV=ci && go test -v ./...
27
+
28
+ - name : Build for windows
29
+ run : |
30
+ export GOOS=windows && GOARCH=amd64
31
+ mkdir -p ./windows
32
+ make build
33
+ mv dist/ windows/
34
+
35
+ - name : deploy gitconvex windows build bundles to S3
36
+ uses :
shallwefootball/[email protected]
37
+ with :
38
+ aws_key_id : ${{ secrets.AWS_ACCESS_ID }}
39
+ aws_secret_access_key : ${{ secrets.AWS_ACCESS_SECRET }}
40
+ aws_bucket : ${{ secrets.AWS_BUCKET_URL }}
41
+ source_dir : ' windows'
42
+ destination_dir : ' windows'
43
+
44
+ # Runs a set of commands using the runners shell
45
+ - name : Run a multi-line script
46
+ run : |
47
+ echo Add other actions to build,
48
+ echo test, and deploy your project.
You can’t perform that action at this time.
0 commit comments