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 Contentful Publish Event
2+
23on :
34 repository_dispatch :
45 types : [publish-event]
56
7+ permissions :
8+ contents : write # nötig für gh-pages Push
9+
10+ concurrency :
11+ group : kellerkind-deploy
12+ cancel-in-progress : false
13+
614jobs :
715 deploy :
8- runs-on : ubuntu-18.04
16+ runs-on : ubuntu-latest
917 steps :
10- - uses : actions/checkout@v2
18+ - uses : actions/checkout@v4
1119
12- - name : Setup Node
13- uses : actions/setup-node@v1
20+ - name : Setup Node.js
21+ uses : actions/setup-node@v4
1422 with :
15- node-version : ' 12.x'
16-
17- - name : Get npm cache directory
18- id : npm-cache
19- run : |
20- echo "::set-output name=dir::$(npm config get cache)"
21- - uses : actions/cache@v1
22- with :
23- path : ${{ steps.npm-cache.outputs.dir }}
24- key : ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
25- restore-keys : |
26- ${{ runner.os }}-node-
23+ node-version : ' 20.x'
24+ cache : ' yarn'
25+ cache-dependency-path : yarn.lock
2726
2827 - name : Install dependencies
29- run : yarn install
28+ run : yarn install --frozen-lockfile
3029
3130 - name : Predeploy
32- run : yarn predeploy
3331 env :
3432 CONTENTFUL_SPACE_ID : ${{ secrets.CONTENTFUL_SPACE_ID }}
3533 CONTENTFUL_ACCESS_TOKEN : ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
34+ run : yarn predeploy
3635
37- - name : Deploy
36+ - name : Deploy to GitHub Pages
3837 uses : peaceiris/actions-gh-pages@v3
3938 with :
4039 github_token : ${{ secrets.GITHUB_TOKEN }}
41- publish_dir : public
40+ publish_dir : ./ public
4241 publish_branch : master
4342 cname : www.kellerkind.com
You can’t perform that action at this time.
0 commit comments