Skip to content

Commit 506a7bc

Browse files
author
Quentin Alldredge
committed
Merge branch 'master' of https://github.com/gcentral/Website
2 parents 18ade30 + 60df6e6 commit 506a7bc

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/hugo-pages.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy Hugo site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master # <- Deploy on pushes to main
7+
workflow_dispatch: # <- Allow manual runs from the Actions tab
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: true # Set to true if your theme is a submodule
27+
fetch-depth: 0
28+
29+
- name: Setup Hugo
30+
uses: peaceiris/actions-hugo@v3
31+
with:
32+
hugo-version: "0.119.0" # <- change to match your local Hugo version
33+
extended: true # <- true if you use SCSS, pipes, etc.
34+
35+
- name: Build site
36+
run: hugo --minify # Add flags here if you need them
37+
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: ./public # <- must match your Hugo publishDir (default is public)
42+
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
needs: build
48+
runs-on: ubuntu-latest
49+
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)