blowfish/.github/workflows/firebase-production.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

2022-12-30 09:08:29 -06:00
name: Deploy Production to Firebase
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Hugo setup
uses: peaceiris/actions-hugo@v3.0.0
2023-12-01 05:27:30 -06:00
with:
2025-01-10 17:27:31 -06:00
hugo-version: 0.140.2
2023-12-01 05:27:30 -06:00
extended: true
2022-12-30 09:08:29 -06:00
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Check out code into the Go module directory
uses: actions/checkout@v4
2022-12-30 09:08:29 -06:00
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
2023-07-14 06:56:33 -05:00
hugo -E -F --minify -s exampleSite --themesDir ../.. -d ../public --baseURL https://blowfish.page
2022-12-30 09:08:29 -06:00
- name: Deploy Production
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLOWFISH_21FFF }}'
channelId: live
projectId: blowfish-21fff