File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Kellerkind Build on Push
2+
23on :
34 push :
4- branches :
5- - source
5+ branches : [source]
66 pull_request :
7- branches :
8- - source
7+ branches : [source]
8+
9+ permissions :
10+ contents : write # für gh-pages Push
911
12+ concurrency :
13+ group : kellerkind-deploy-push
14+ cancel-in-progress : false
1015
1116jobs :
1217 deploy :
1318 runs-on : ubuntu-latest
1419 steps :
15- - uses : actions/checkout@v3
16-
17- - name : Setup Node
18- uses : actions/setup-node@v3
19- with :
20- node-version : ' 16.x'
20+ - uses : actions/checkout@v4
2121
22- - name : Get npm cache directory
23- id : npm-cache
24- run : |
25- echo "::set-output name=dir::$(npm config get cache)"
26- - uses : actions/cache@v1
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v4
2724 with :
28- path : ${{ steps.npm-cache.outputs.dir }}
29- key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
30- restore-keys : |
31- ${{ runner.os }}-node-
25+ node-version : ' 20.x'
26+ cache : ' yarn'
27+ cache-dependency-path : yarn.lock
3228
3329 - name : Install dependencies
34- run : yarn install
30+ run : yarn install --frozen-lockfile
3531
3632 - name : Predeploy
37- run : yarn predeploy
3833 env :
3934 CONTENTFUL_SPACE_ID : ${{ secrets.CONTENTFUL_SPACE_ID }}
4035 CONTENTFUL_ACCESS_TOKEN : ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
36+ run : yarn predeploy
4137
42- - name : Deploy
38+ - name : Deploy to GitHub Pages
4339 uses : peaceiris/actions-gh-pages@v3
4440 with :
4541 github_token : ${{ secrets.GITHUB_TOKEN }}
46- publish_dir : public
42+ publish_dir : ./ public
4743 publish_branch : master
4844 cname : www.kellerkind.com
You can’t perform that action at this time.
0 commit comments