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 : Eleventy Build
22
3- # Controls when the action will run. Triggers the workflow on push or pull request
4- # events but only for the master branch
3+ # Controls when the action will run. Triggers the workflow on push to master
54on :
65 push :
76 branches : [ master ]
87
9- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
8+ permissions :
9+ contents : write
10+
1011jobs :
11- # This workflow contains a single job called "build"
1212 build :
13- # The type of runner that the job will run on
1413 runs-on : ubuntu-latest
15- env :
16- ACTIONS_ALLOW_UNSECURE_COMMANDS : true
1714
18- # Steps represent a sequence of tasks that will be executed as part of the job
1915 steps :
20- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v4
2217
2318 - name : Setup Node.js environment
24- uses : actions/setup-node@v2
19+ uses : actions/setup-node@v4
2520 with :
26- node-version : ' 14 '
21+ node-version : ' 22 '
2722
2823 - name : Install packages
2924 run : npm install
3227 run : npm run build
3328
3429 - name : Deploy to gh-pages
35- uses : peaceiris/actions-gh-pages@v3
30+ uses : peaceiris/actions-gh-pages@v4
3631 with :
37- deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
32+ github_token : ${{ secrets.GITHUB_TOKEN }}
3833 publish_dir : ./_site
3934 cname : docs.mongock.io
You can’t perform that action at this time.
0 commit comments