Bump hugo-cli from 0.13.0 to 0.14.0 (#131) #20
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 Hugo site to Pages | |
on: | |
push: | |
branches: ["main"] | |
paths-ignore: | |
- README.md | |
- CONTRIBUTING.md | |
- CODE_OF_CONDUCT.md | |
workflow_dispatch: | |
inputs: {} | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Install Node.js dependencies | |
run: yarn install | |
- name: Check | |
run: yarn run dprint check | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v5 | |
- name: Build with Hugo | |
run: | | |
yarn run hugo \ | |
--minify \ | |
--themesDir ../.. \ | |
--baseURL "${{ steps.pages.outputs.base_url }}" | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@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@v4 |