Delete .DS_Store #2
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
# Deploy Docs | |
# This workflow will build and deploy the docs to Firebase Hosting | |
name: Deploy Docs | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: write | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install dependencies and build | |
run: | | |
pnpm install | |
cd docs | |
pnpm install | |
cd ../api | |
npm install | |
- name: Install Firebase Tools | |
run: | | |
npm install -g firebase-tools | |
firebase experiments:enable webframeworks | |
- name: Set up Google Application Credentials | |
run: | | |
mkdir -p ./api/credentials | |
printf "%s" "${{ secrets.API_SERVICE_KEY }}" > ./api/credentials/cert.json | |
env: | |
API_SERVICE_KEY: ${{ secrets.API_SERVICE_KEY }} | |
- name: Deploy Documentation | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
run: | | |
cd docs | |
pnpm run build | |
firebase deploy --only hosting --token $FIREBASE_TOKEN | |
- name: Deploy API | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
run: | | |
cd api | |
# firebase use --add steam-brew | |
# firebase deploy --only functions --token $FIREBASE_TOKEN | |
- name: Deploy Main Site | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
run: | | |
pnpm run build | |
firebase deploy --only hosting --token $FIREBASE_TOKEN |