Skip to content

Commit 34ca669

Browse files
Update
1 parent d2c9a93 commit 34ca669

6 files changed

Lines changed: 83 additions & 35 deletions

File tree

.github/workflows/hugo.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,33 @@
22
name: Deploy Hugo site to Pages
33

44
on:
5+
# Runs on pushes targeting the default branch
56
push:
67
branches:
78
- main
9+
10+
# Allows you to run this workflow manually from the Actions tab
811
workflow_dispatch:
912

13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1014
permissions:
1115
contents: read
1216
pages: write
1317
id-token: write
1418

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.
1521
concurrency:
1622
group: "pages"
1723
cancel-in-progress: false
1824

25+
# Default to bash
1926
defaults:
2027
run:
2128
shell: bash
2229

2330
jobs:
31+
# Build job
2432
build:
2533
runs-on: ubuntu-latest
2634
env:
@@ -44,31 +52,27 @@ jobs:
4452
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
4553
- name: Build with Hugo
4654
env:
55+
# For maximum backward compatibility with Hugo modules
4756
HUGO_ENVIRONMENT: production
4857
HUGO_ENV: production
4958
run: |
5059
hugo \
5160
--gc \
5261
--minify \
53-
--baseURL "${{ steps.pages.outputs.base_url }}/"
54-
- name: Upload build artifact
55-
uses: actions/upload-artifact@v3.1.2
62+
--baseURL "${{ steps.pages.outputs.base_url }}/"
63+
- name: Upload artifact
64+
uses: actions/upload-pages-artifact@v1
5665
with:
57-
name: github-pages
5866
path: ./public
5967

68+
# Deployment job
6069
deploy:
6170
environment:
6271
name: github-pages
6372
url: ${{ steps.deployment.outputs.page_url }}
6473
runs-on: ubuntu-latest
6574
needs: build
6675
steps:
67-
- name: Download artifact
68-
uses: actions/download-artifact@v3
69-
with:
70-
name: github-pages
71-
path: ./public
7276
- name: Deploy to GitHub Pages
7377
id: deployment
74-
uses: actions/deploy-pages@v2
78+
uses: actions/deploy-pages@v2

public/categories/index.html

Lines changed: 17 additions & 6 deletions
Large diffs are not rendered by default.

public/post/index.html

Lines changed: 17 additions & 6 deletions
Large diffs are not rendered by default.

public/tags/index.html

Lines changed: 17 additions & 6 deletions
Large diffs are not rendered by default.

public/tags/index/index.html

Lines changed: 17 additions & 6 deletions
Large diffs are not rendered by default.

themes/up-business-theme/layouts/partials/head/_resources.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Load Shared SCSS -->
22
{{- $sharedSCSS := resources.Get "scss/shared/shared.scss" -}}
3-
{{- $sharedSCSS := $sharedSCSS | resources.ToCSS (dict "outputStyle" "compressed" "includePaths" (slice "assets")) -}}
3+
{{- $sharedSCSS := $sharedSCSS | css.Sass (dict "outputStyle" "compressed" "includePaths" (slice "assets")) -}}
44
{{- $sharedSCSS := $sharedSCSS | resources.ExecuteAsTemplate "main.scss" . -}}
55

66
<!-- Load Shared JS -->

0 commit comments

Comments
 (0)