forked from CrunchyData/pg_featureserv
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.15 KB
/
ci.yml
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
on: [push, pull_request]
jobs:
ci:
name: CI
strategy:
matrix:
go-version: [1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: 'Install Go'
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v3
- name: Test
run: make test
- name: Build
run: make build
- name: 'Bundle Zip'
if: github.repository == 'CrunchyData/pg_featureserv' && github.ref_name == 'master'
env:
MATRIX_OS: ${{ matrix.os }}
run: ./ci/github-bundle.sh
shell: bash
- name: 'Login to AWS'
if: github.repository == 'CrunchyData/pg_featureserv' && github.ref_name == 'master'
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: 'Upload Zip'
if: github.repository == 'CrunchyData/pg_featureserv' && github.ref_name == 'master'
run: aws s3 sync ./upload s3://postgisftw