Skip to content

Commit 889df39

Browse files
committed
Update Deployment Workflow
1 parent 39db1ef commit 889df39

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

.github/workflows/hugo.yaml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,56 @@
1-
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2-
name: Deploy Hugo site to Pages
1+
name: Deploy Hugo Site To GitHub Pages
32

43
on:
5-
# Runs on pushes targeting the default branch
4+
# run on pushes, targeting the default branch
65
push:
76
branches:
87
- main
98

10-
# Allows you to run this workflow manually from the Actions tab
9+
# allow the workflow to be started manually from the GitHub Actions tab
1110
workflow_dispatch:
1211

13-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
# set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1413
permissions:
1514
contents: read
1615
pages: write
1716
id-token: write
1817

19-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+
# allow only one concurrent deployment, skipping runs queued between the run in progress and the latest run queued
19+
# however, do not cancel in-progress runs, in order to allow these production deployments to complete
2120
concurrency:
2221
group: "pages"
2322
cancel-in-progress: false
2423

25-
# Default to bash
24+
# default to bash shell
2625
defaults:
2726
run:
2827
shell: bash
2928

3029
jobs:
31-
# Build job
3230
build:
3331
runs-on: ubuntu-latest
3432
env:
35-
HUGO_VERSION: 0.147.2
33+
HUGO_VERSION: 0.147.3
3634
HUGO_ENVIRONMENT: production
37-
TZ: America/Los_Angeles
35+
TZ: Europe/London
3836
steps:
3937
- name: Install Hugo CLI
4038
run: |
4139
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
4240
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
43-
- name: Install Dart Sass
41+
- name: Install Dart SASS
4442
run: sudo snap install dart-sass
45-
- name: Checkout
43+
- name: Check Out Solution
4644
uses: actions/checkout@v4
4745
with:
4846
submodules: recursive
4947
fetch-depth: 0
50-
- name: Setup Pages
48+
- name: Configure Pages
5149
id: pages
5250
uses: actions/configure-pages@v5
53-
- name: Install Node.js dependencies
51+
- name: Install Node.JS Dependencies
5452
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
55-
- name: Cache Restore
53+
- name: Restore Cache
5654
id: cache-restore
5755
uses: actions/cache/restore@v4
5856
with:
@@ -63,33 +61,32 @@ jobs:
6361
hugo-
6462
- name: Configure Git
6563
run: git config core.quotepath false
66-
- name: Build with Hugo
64+
- name: Build With Hugo
6765
run: |
6866
hugo \
6967
--gc \
7068
--minify \
7169
--baseURL "${{ steps.pages.outputs.base_url }}/" \
7270
--cacheDir "${{ runner.temp }}/hugo_cache"
73-
- name: Cache Save
71+
- name: Save Cache
7472
id: cache-save
7573
uses: actions/cache/save@v4
7674
with:
7775
path: |
7876
${{ runner.temp }}/hugo_cache
7977
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
80-
- name: Upload artifact
78+
- name: Upload Pages Artefact
8179
uses: actions/upload-pages-artifact@v3
8280
with:
8381
path: ./public
8482

85-
# Deployment job
8683
deploy:
8784
environment:
8885
name: github-pages
8986
url: ${{ steps.deployment.outputs.page_url }}
9087
runs-on: ubuntu-latest
9188
needs: build
9289
steps:
93-
- name: Deploy to GitHub Pages
90+
- name: Deploy To GitHub Pages
9491
id: deployment
9592
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)