Skip to content

Commit f1e7cd6

Browse files
committed
docs: update for v3
1 parent 07a3f29 commit f1e7cd6

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

README.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -624,39 +624,38 @@ name: github pages
624624
on:
625625
push:
626626
branches:
627-
- master
627+
- master
628628
629629
jobs:
630-
build-deploy:
630+
deploy:
631631
runs-on: ubuntu-18.04
632632
steps:
633-
- uses: actions/checkout@v1
633+
- uses: actions/checkout@v2
634634
635-
- name: Setup Node
636-
uses: actions/setup-node@v1
637-
with:
638-
node-version: '10.x'
635+
- name: Setup Node
636+
uses: actions/setup-node@v1
637+
with:
638+
node-version: '10.x'
639639
640-
- name: Cache dependencies
641-
uses: actions/cache@v1
642-
with:
643-
path: ~/.npm
644-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
645-
restore-keys: |
646-
${{ runner.os }}-node-
640+
- name: Cache dependencies
641+
uses: actions/cache@v1
642+
with:
643+
path: ~/.npm
644+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
645+
restore-keys: |
646+
${{ runner.os }}-node-
647647
648-
- run: npm ci
648+
- run: npm ci
649649
650-
- run: npm test
650+
- run: npm test
651651
652-
- run: npm run generate
652+
- run: npm run generate
653653
654-
- name: deploy
655-
uses: peaceiris/actions-gh-pages@v2
656-
env:
657-
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
658-
PUBLISH_BRANCH: gh-pages
659-
PUBLISH_DIR: ./dist
654+
- name: deploy
655+
uses: peaceiris/actions-gh-pages@v3
656+
with:
657+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
658+
publish_dir: ./dist
660659
```
661660

662661
### ⭐️ Static Site Generators with Python

0 commit comments

Comments
 (0)