generated from betaflight/template
-
-
Notifications
You must be signed in to change notification settings - Fork 571
34 lines (27 loc) · 1022 Bytes
/
build.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
name: CI - Indexer job (deploy if default branch - i.e. main)
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [15.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- if: github.ref != 'refs/heads/master' || github.repository_owner != 'betaflight'
name: Run the checker script
run: ./scripts/build.sh
- if: github.ref == 'refs/heads/master' && github.repository_owner == 'betaflight'
name: Run the checker, indexer and deployment script
run: ./scripts/build.sh deploy
env:
AWS_DISTRIBUTION_ID: ${{secrets.AWS_DISTRIBUTION_ID}}
AWS_BUCKET: api.betaflight.com
AWS_REGION: us-east-1
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}