-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (44 loc) · 1.68 KB
/
develop.yaml
File metadata and controls
44 lines (44 loc) · 1.68 KB
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
44
name: "Deploy Develop"
on:
push:
branches:
- develop
jobs:
deploy-dev:
name: deploy-develop
runs-on: ubuntu-latest
env:
REACT_APP_DATABASE: DEV
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Dependencies
run: npm install
- name: Install Rollup Linux Native Binary
if: runner.os == 'Linux'
run: |
ROLLUP_VERSION=$(node -e "const fs=require('fs'); const path=require('path'); const main=require.resolve('rollup'); const pkg=JSON.parse(fs.readFileSync(path.join(path.dirname(main), '..', 'package.json'),'utf8')); process.stdout.write(pkg.version)")
npm install --no-save @rollup/rollup-linux-x64-gnu@$ROLLUP_VERSION
- name: Lint And Format Check
run: |
npm run lint
npm run typecheck
npm run format:check
- name: Build
run: |
echo "STORAGE_BUCKET_URL=gs://csound-ide-dev.appspot.com" >> functions/.env.dev
PUBLIC_URL="https://csound-ide-dev.web.app" npm run build:dev
cp dist/index.html functions
cd functions
yarn install
yarn build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy -P develop
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY_DEV }}