File tree Expand file tree Collapse file tree 1 file changed +2
-43
lines changed
Expand file tree Collapse file tree 1 file changed +2
-43
lines changed Original file line number Diff line number Diff line change @@ -10,46 +10,5 @@ permissions:
1010 id-token : write
1111
1212jobs :
13- build :
14- runs-on : ubuntu-24.04
15- env :
16- HUGO_VERSION : 0.143.1
17- steps :
18- - name : Install Hugo CLI
19- run : |
20- wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
21- && sudo dpkg -i ${{ runner.temp }}/hugo.deb
22- - name : Checkout
23- uses : actions/checkout@v4
24- with :
25- submodules : recursive
26- fetch-depth : 0
27- - name : Setup Pages
28- id : pages
29- uses : actions/configure-pages@v5
30- - name : Build with Hugo
31- env :
32- HUGO_CACHEDIR : ${{ runner.temp }}/hugo_cache
33- HUGO_ENVIRONMENT : production
34- TZ : America/Los_Angeles
35- run : |
36- hugo \
37- --gc \
38- --minify \
39- --baseURL "${{ steps.pages.outputs.base_url }}/"
40- - name : Upload artifact
41- uses : actions/upload-pages-artifact@v3
42- with :
43- path : ./public
44-
45- deploy :
46- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
47- runs-on : ubuntu-24.04
48- needs : build
49- environment :
50- name : github-pages
51- url : ${{ steps.deployment.outputs.page_url }}
52- steps :
53- - name : Deploy to GitHub Pages
54- id : deployment
55- 13+ build-hugo-website :
14+ uses : https://github.com/modelica/ma-hugo-theme/.github/workflow-templates/build-hugo-website.yml@f68cd5ef0ea651e00e45d607f2284ac68be6679e
You can’t perform that action at this time.
0 commit comments