Skip to content

Commit 91dbfc0

Browse files
ci: fix gh-pages deploy and modernize workflow (#46)
fix deployment proces
1 parent e49c8b6 commit 91dbfc0

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
name: 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
54
on:
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+
1011
jobs:
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
@@ -32,8 +27,8 @@ jobs:
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

0 commit comments

Comments
 (0)