-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (35 loc) · 1.13 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
on: [push, pull_request]
jobs:
ci:
name: CI
strategy:
matrix:
go-version: [1.19.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: Build
run: make build
- name: 'Bundle Zip'
if: github.repository == 'CrunchyData/pg_eventserv' && github.ref_name == 'main'
env:
MATRIX_OS: ${{ matrix.os }}
PROGRAM: pg_eventserv
run: ./ci/github-bundle.sh
shell: bash
- name: 'Login to AWS'
if: github.repository == 'CrunchyData/pg_eventserv' && github.ref_name == 'main'
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_eventserv' && github.ref_name == 'main'
run: aws s3 sync ./upload s3://postgisftw