File tree Expand file tree Collapse file tree 3 files changed +45
-95
lines changed
Expand file tree Collapse file tree 3 files changed +45
-95
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Deployment to GitHub Pages
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main # <-- specify the branch you want to deploy from
8+ pull_request :
9+
10+ env :
11+ REPO_NAME : ${{ github.event.repository.name }}
12+ REPO_OWNER : ${{ github.repository_owner }}
13+
14+ jobs :
15+ deploy :
16+ runs-on : ubuntu-22.04
17+ concurrency :
18+ group : ${{ github.workflow }}-${{ github.ref }}
19+ steps :
20+ - uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 0 # Fetch all history for .GitInfo and .Lastmod
23+
24+ - name : Setup Hugo
25+ uses : peaceiris/actions-hugo@v3
26+ with :
27+ hugo-version : ' 0.125.5'
28+ extended : true
29+
30+ - name : Setup Node
31+ uses : actions/setup-node@v4
32+ with :
33+ node-version : ' 20'
34+ cache : ' npm'
35+ cache-dependency-path : ' **/package-lock.json'
36+
37+ - run : npm ci
38+ - run : hugo --baseURL https://${REPO_OWNER}.github.io/${REPO_NAME} --minify
39+
40+ - name : Deploy
41+ uses : peaceiris/actions-gh-pages@v4
42+ if : ${{ github.ref == 'refs/heads/main' }} # <-- specify same branch as above here
43+ with :
44+ github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1- baseURL : https://example.docsy.dev
1+ baseURL : https://IntelPython.github.io/portable-data-parallel-extensions-scipy-2024
22title : Goldydocs
33
44# cSpell:ignore goldmark github hugo readingtime docsy subdir lastmod pygments linenos catmullrom norsk gu
You can’t perform that action at this time.
0 commit comments