Skip to content

Updated boilerplate #1416

Updated boilerplate

Updated boilerplate #1416

Workflow file for this run

name: Deploy to Live Channel
on:
push:
branches:
- main
# Optionally configure to run only for specific files. For example:
# paths:
# - "website/**"
jobs:
deploy_live_website:
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Add any build steps here. For example:
# - run: npm ci && npm run build
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.147.0'
extended: true
- name: Build
run: |
cd content/ai_exchange
hugo mod get github.com/imfing/hextra@v0.11.1
hugo --gc --minify
- name: Build search index (Pagefind)
run: npx pagefind --site public
working-directory: content/ai_exchange
- name: Generate PDF
run: |
npm ci
npm run build:pdf
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: project-integration-standards
target: owasp-ai-exchange
channelId: live
entryPoint: content/ai_exchange