mirror of
https://github.com/fergalmoran/radio-otherway.git
synced 2025-12-22 09:50:29 +00:00
25 lines
647 B
YAML
25 lines
647 B
YAML
name: Deploy to Firebase Hosting on merge
|
|
'on':
|
|
push:
|
|
branches:
|
|
- develop
|
|
defaults:
|
|
run:
|
|
working-directory: web
|
|
jobs:
|
|
build_and_deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 16
|
|
- run: yarn install --frozen-lockfile
|
|
- run: yarn build
|
|
- uses: FirebaseExtended/action-hosting-deploy@v0
|
|
with:
|
|
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
|
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_RADIO_OTHERWAY }}'
|
|
channelId: live
|
|
projectId: radio-otherway
|