Skip to content

Commit fb9d75f

Browse files
authored
add actions yml to deploy gitconvex bundle to S3
1 parent 1089cf2 commit fb9d75f

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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.

0 commit comments

Comments
 (0)