Skip to content

chore(deps): update actions/configure-pages action to v5 (#35) #45

chore(deps): update actions/configure-pages action to v5 (#35)

chore(deps): update actions/configure-pages action to v5 (#35) #45

Workflow file for this run

name: Deploy Hugo site to Pages
on:
push:
branches:
- main
workflow_dispatch:
# Deploy every month at 00:00 UTC to update the site's copyright notice
schedule:
- cron: '0 0 1 * *'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.121.1
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install devbox
uses: jetpack-io/devbox-install-action@2aca099641c8564f8a841de48cd51107e6a24588 # v0.9.0
with:
enable-cache: true
- name: Setup Pages
id: pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- name: Build
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
devbox run -- hugo \
--baseURL "${{ steps.pages.outputs.base_url }}/" \
--minify
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: ./public
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@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4