Skip to content

Update pug-cli (#205) #25

Update pug-cli (#205)

Update pug-cli (#205) #25

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Production
'on':
push:
branches:
- master
jobs:
build_and_deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20 # has to be
cache: 'npm'
- name: Install all CLI tools
run: npm install -g @tokilabs/pug3-cli sass js-yaml firebase-tools svgo png-minify uglifycss uglify-js purgecss
- name: Render the website from templates
run: |
chmod +x ./render.sh
./render.sh
- name: Firebase Deploy to Production
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_APP_PRIVACY_POLICY_GENERATOR }}'
channelId: live
projectId: app-privacy-policy-generator