-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (31 loc) · 955 Bytes
/
staging.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
name: staging
on:
push:
branches:
- staging
jobs:
build:
# Prevent running this on forks
if: github.repository_owner == 'flybywiresim'
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Run npm install
run: |
npm ci
- name: Build config
run: |
npm run build -- staging
- name: Upload to CloudFlare CDN
env:
CLOUDFLARE_BUCKET_PASSWORD: ${{ secrets.CLOUDFLARE_BUCKET_PASSWORD }}
CDN_BUCKET_DESTINATION: installer/config
run: ./scripts/cdn-cf.sh ./dist $CDN_BUCKET_DESTINATION
- name: Upload to Bunny CDN
env:
BUNNY_BUCKET_PASSWORD: ${{ secrets.BUNNY_BUCKET_PASSWORD }}
BUNNY_SECRET_TOKEN: ${{ secrets.BUNNY_SECRET_TOKEN }}
BUNNY_BUCKET_DESTINATION: installer/config
run: |
./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./dist