Skip to content

Update .github/workflows/update-modules.yml & delete fixit-component-… #43

Update .github/workflows/update-modules.yml & delete fixit-component-…

Update .github/workflows/update-modules.yml & delete fixit-component-… #43

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
workflow_run:
workflows: ['Update hugo modules']
types:
- completed
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Cache Hugo resources
uses: actions/cache@v4
env:
cache-name: cache-hugo-resources
with:
path: resources
key: ${{ env.cache-name }}
- uses: actions/setup-go@v5
with:
go-version: "^1.23.0"
- run: go version
- name: Cache Go Modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
# use the environment variable HUGO_VERSION as the hugo version, if not set, use `latest`.
hugo-version: ${{ vars.HUGO_VERSION || 'latest' }}
extended: true
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ATTAJAK }}
channelId: live
projectId: attajak