Merge pull request #259 from MartinsOnuoha/dependabot/npm_and_yarn/ty… #250
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: Build & Deploy 🚀 | |
'on': | |
push: | |
branches: | |
- master | |
jobs: | |
build_and_deploy: | |
environment: 'production' | |
env: | |
VITE_APP_TITLE: ${{ vars.VITE_APP_TITLE }} | |
VITE_APP_DESCRIPTION: ${{ vars.VITE_APP_DESCRIPTION }} | |
VITE_APP_WEBSITE: ${{ vars.VITE_APP_WEBSITE }} | |
VITE_APP_IMG: ${{ vars.VITE_APP_IMG }} | |
VITE_APP_KEYWORDS: ${{ vars.VITE_APP_KEYWORDS }} | |
VITE_APP_LANG: ${{ vars.VITE_APP_LANG }} | |
VITE_APP_GRAPHQL_URL: ${{ vars.VITE_APP_GRAPHQL_URL }} | |
VITE_APP_GRAPHQL_SECRET: ${{ secrets.VITE_APP_GRAPHQL_SECRET }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check variables | |
run: | | |
echo "VITE_APP_TITLE: $VITE_APP_TITLE" | |
echo "VITE_APP_DESCRIPTION: $VITE_APP_DESCRIPTION" | |
echo "VITE_APP_WEBSITE: $VITE_APP_WEBSITE" | |
echo "VITE_APP_IMG: $VITE_APP_IMG" | |
echo "VITE_APP_KEYWORDS: $VITE_APP_KEYWORDS" | |
echo "VITE_APP_LANG: $VITE_APP_LANG" | |
echo "VITE_APP_GRAPHQL_URL: $VITE_APP_GRAPHQL_URL" | |
- uses: actions/checkout@v4 | |
- run: npm ci && npm run build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WHATSHOULDIDESIGN }}' | |
channelId: live | |
projectId: whatshouldidesign |