Skip to content

Deploy to prod

Deploy to prod #23

Workflow file for this run

name: Deploy to prod
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'adrs/**'
- '.gemini/**'
- '**/README.md'
schedule:
- cron: "0 7 * * *"
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
build_drafts_off:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.147.9'
extended: true
- name: Build Svelte components
run: |
# Build Svelte apps and move generated files into position
./svelte/build.sh
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo --source=./hugo --logLevel=debug --minify
- name: Deploy to Firebase
id: deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
projectId: ${{ vars.GOOGLE_CLOUD_PROJECT }}
firebaseServiceAccount: ${{ secrets.SERVICE_ACCOUNT }}
channelId: live