File tree 2 files changed +43
-36
lines changed
hugo-build-versioned-action
2 files changed +43
-36
lines changed Original file line number Diff line number Diff line change @@ -8,24 +8,25 @@ inputs:
8
8
runs :
9
9
using : " composite"
10
10
steps :
11
- - name : " Setup GO"
12
- uses : actions/setup-go@v4
13
- with :
14
- go-version : ' >=1.20.1'
15
- - name : " Setup Node"
16
- uses : actions/setup-node@v3
17
- with :
18
- node-version : 18
19
- - name : " Setup Hugo"
20
- uses : peaceiris/actions-hugo@v3
21
- with :
22
- extended : true
23
- hugo-version : ' 0.110.0'
24
- - name : " Build"
25
- env :
26
- BASE_URL : ${{ inputs.base-url }}
27
- shell : bash
28
- run : |
29
- cd docs
30
- npm install
31
- hugo --minify ${BASE_URL:+--baseURL $BASE_URL} -e _default
11
+ - name : " Setup GO"
12
+ uses : actions/setup-go@v5
13
+ with :
14
+ go-version : ' >=1.20.1'
15
+ - name : " Setup Node"
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ node-version : 20
19
+ cache : ' npm'
20
+ cache-dependency-path : docs/package-lock.json
21
+ - name : " Install Dependencies"
22
+ shell : bash
23
+ working-directory : ./docs
24
+ run : |
25
+ npm ci
26
+ - name : " Build documentation"
27
+ working-directory : ./docs
28
+ env :
29
+ BASE_URL : ${{ inputs.base-url }}
30
+ shell : bash
31
+ run : |
32
+ hugo --minify ${BASE_URL:+--baseURL $BASE_URL} -e _default
Original file line number Diff line number Diff line change @@ -32,28 +32,34 @@ runs:
32
32
run : |
33
33
python -m pip install --upgrade pip
34
34
pip install -r scripts/script-requirements.txt
35
- - uses : actions/setup-go@v4
35
+ - uses : actions/setup-go@v5
36
36
with :
37
37
go-version : ' >=1.20.1'
38
- - uses : actions/setup-node@v3
38
+ - name : " Setup Node"
39
+ uses : actions/setup-node@v4
39
40
with :
40
- node-version : 18
41
- - name : " Setup Hugo"
42
- uses : peaceiris/actions-hugo@v3
43
- with :
44
- extended : true
45
- hugo-version : ' 0.110.0'
46
- - name : " Build"
47
- env :
48
- THIS_BRANCH : ${{ inputs.this-branch }}
49
- BASE_URL : ${{ inputs.base-url }}
50
- HUGO_ENV : ${{ inputs.hugo-env }}
41
+ node-version : 20
42
+ cache : ' npm'
43
+ cache-dependency-path : docs/package-lock.json
44
+ - name : " Install Dependencies"
45
+ working-directory : ./docs
46
+ shell : bash
47
+ run : |
48
+ npm ci
49
+ - name : " Generate version docs"
50
+ working-directory : ./docs
51
51
shell : bash
52
52
run : |
53
- cd docs
54
53
rm -f generate.sh
55
54
wget https://raw.githubusercontent.com/gooddata/gooddata-python-sdk/master/scripts/generate.sh
56
55
chmod +x ./generate.sh
57
56
./generate.sh ${{ inputs.fetch-from }} master
58
- npm install
57
+ - name : " Build documentation"
58
+ working-directory : ./docs
59
+ env :
60
+ THIS_BRANCH : ${{ inputs.this-branch }}
61
+ BASE_URL : ${{ inputs.base-url }}
62
+ HUGO_ENV : ${{ inputs.hugo-env }}
63
+ shell : bash
64
+ run : |
59
65
hugo --minify ${BASE_URL:+--baseURL $BASE_URL}
You can’t perform that action at this time.
0 commit comments