File tree Expand file tree Collapse file tree
themes/up-business-theme/layouts/partials/head Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22name : Deploy Hugo site to Pages
33
44on :
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
1014permissions :
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.
1521concurrency :
1622 group : " pages"
1723 cancel-in-progress : false
1824
25+ # Default to bash
1926defaults :
2027 run :
2128 shell : bash
2229
2330jobs :
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
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 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 -->
You can’t perform that action at this time.
0 commit comments