-
Notifications
You must be signed in to change notification settings - Fork 159
40 lines (34 loc) · 1.1 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
on: [push, pull_request]
jobs:
ci:
name: CI
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: 'Install Go'
uses: actions/setup-go@v4
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_tileserv' && 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_tileserv' && github.ref_name == 'master'
uses: aws-actions/configure-aws-credentials@v4
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_tileserv' && github.ref_name == 'master'
run: aws s3 sync ./upload s3://postgisftw