Skip to content

fix: configure custom domain for GitHub Pages #16

fix: configure custom domain for GitHub Pages

fix: configure custom domain for GitHub Pages #16

Workflow file for this run

name: Hugo CI
on:
push:
branches:
- main
- 'copilot/**'
pull_request:
workflow_dispatch:
env:
HUGO_VERSION: '0.123.7'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install Hugo
run: |
curl -fsSL -o /tmp/hugo.deb "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb"
sudo dpkg -i /tmp/hugo.deb
hugo version
- name: Build site
run: hugo --gc --minify
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: deploy-pages-${{ github.ref }}
cancel-in-progress: true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4