Skip to content

Bump actions/upload-pages-artifact from 2 to 3 (#99) #16

Bump actions/upload-pages-artifact from 2 to 3 (#99)

Bump actions/upload-pages-artifact from 2 to 3 (#99) #16

Workflow file for this run

name: GitHub Pages deployment
on:
push:
branches: [main]
schedule:
- cron: "0 3 1 1 *" # 03:00 AM on January 1
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
id-token: write
pages: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup latest version of Hugo extended edition
uses: peaceiris/[email protected]
with:
hugo-version: 'latest'
extended: true
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with Hugo
run: |
hugo \
--gc \
--minify \
--logLevel debug \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Adjusting build artifacts
run: |
cp ./_site/en/404.html ./_site/404.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
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@v3