Rejig actions

This commit is contained in:
Fergal Moran
2023-03-06 09:15:20 +00:00
parent 763ac4e855
commit 63f4dd19e3
3 changed files with 6 additions and 22 deletions

View File

@@ -1,11 +1,12 @@
name: Deploy to Firebase Hosting on merge
'on':
name: Deploy to Firebase
on:
push:
branches:
- develop
branches: [ develop ]
defaults:
run:
working-directory: web
jobs:
build_and_deploy:
runs-on: ubuntu-latest

View File

@@ -1,17 +0,0 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install && yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_RADIO_OTHERWAY }}'
projectId: radio-otherway

View File

@@ -1,4 +1,4 @@
name: Docker Image CI
name: Build Scheduler Docker Image
on:
push: