mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-06 01:16:34 -06:00
Inject environment variables with GitHub Actions & Secrets, move relevant packages back into devDependencies
This commit is contained in:
5
.github/workflows/firebase-hosting-merge.yml
vendored
5
.github/workflows/firebase-hosting-merge.yml
vendored
@@ -3,6 +3,11 @@ name: Deploy to Firebase Hosting on merge
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
env:
|
||||
VUE_APP_ALGOLIA_APP_ID: '${{ secrets.ALGOLIA_APP_ID }}'
|
||||
VUE_APP_ALGOLIA_API_KEY: '${{ secrets.ALGOLIA_API_KEY }}'
|
||||
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
name: Deploy to Firebase Hosting on PR
|
||||
'on': pull_request
|
||||
|
||||
env:
|
||||
VUE_APP_ALGOLIA_APP_ID: '${{ secrets.ALGOLIA_APP_ID }}'
|
||||
VUE_APP_ALGOLIA_API_KEY: '${{ secrets.ALGOLIA_API_KEY }}'
|
||||
|
||||
jobs:
|
||||
build_and_preview:
|
||||
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@master
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- run: yarn install
|
||||
- run: yarn run build
|
||||
- uses: FirebaseExtended/action-hosting-deploy@v0
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user