Skip to content

Tweak actions workflow. #7

Tweak actions workflow.

Tweak actions workflow. #7

name: Deploy main site
on:
push:
branches:
- main
paths:
- website/**
- .github/workflows/lostpixels-hosting.yml
jobs:
build_and_deploy_lp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: website/package-lock.json
- run: cd website && npm install
- run: cd website && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_LOST_PIXELS_PROD }}
projectId: lost-pixels-prod
target: mainsite
channelId: live