Skip to content

Commit

Permalink
Add .github/workflows/pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
schu committed Mar 21, 2024
1 parent f09126e commit 8f583eb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.124.1'
extended: true

- name: Build
run: |
git submodule update --init
pushd themes/about-blank
npm install
popd
hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

0 comments on commit 8f583eb

Please sign in to comment.