Updated boilerplate #1416
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |