Skip to content

Commit

Permalink
Merge pull request #384 from pmem/revert-383-revert-382-update-hugo
Browse files Browse the repository at this point in the history
Revert "Revert "Update hugo""
  • Loading branch information
pbalcer authored Jan 22, 2025
2 parents 3fd780b + 4ca945c commit 4b8dc4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ on:
- main # Set a branch to deploy
pull_request:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
Expand All @@ -21,24 +15,29 @@ concurrency:
jobs:
# Build job
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.101.0'
hugo-version: '0.141.0'
# extended: true

- name: Build
run: hugo --minify

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./public

Expand All @@ -48,8 +47,13 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
title: "Create a Persistent Memory Aware Queue Using the Persistent Memory Development Kit"

# Tutorial post date
date: 2018-30-12T23:06:17Z
date: 2018-12-30T23:06:17Z

# Publish immediately
draft: false
Expand Down

0 comments on commit 4b8dc4c

Please sign in to comment.