File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Docs: Dry Run Production Deployment"
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - ' docs/**'
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Setup Hugo
13+ uses : peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
14+ with :
15+ hugo-version : ' 0.125.3'
16+ extended : true
17+
18+ - name : Setup Node
19+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
20+ with :
21+ node-version : ' 22.14.0'
22+
23+ - name : Cache dependencies
24+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
25+ with :
26+ path : ~/.npm
27+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28+ restore-keys : |
29+ ${{ runner.os }}-node-
30+
31+ - name : Checkout
32+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+ with :
34+ submodules : recursive
35+ fetch-depth : 0
36+
37+ - name : Test the build process
38+ env :
39+ HUGO_ENVIRONMENT : production
40+ HUGO_ENV : production
41+ run : cd docs && npm ci && hugo --minify --gc --config config/production/hugo.toml
You can’t perform that action at this time.
0 commit comments