π chore: Add title front matter for root page #209
This file contains 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 | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: π Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: βοΈ Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "package.json" | |
- name: π¦ Install dependencies | |
run: | | |
cd themes/congo | |
npm ci | |
- name: ποΈ Build CSS | |
run: npm run css:build | |
- name: ποΈ Build site | |
uses: tomy0000000/actions/hugo-github-pages@main | |
with: | |
hugo_version: "0.135.0" | |
upload: false | |
# Temporary fix before gohugoio/hugo#5161 is resolved | |
- name: π§ Fix 404 Page | |
run: | | |
scripts/patch_404.sh | |
- name: β¬οΈ Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./public | |
deploy: | |
name: π Deploy | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: π Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |