Skip to content

Commit 07a3f29

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

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

README.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -567,45 +567,44 @@ name: github pages
567567
on:
568568
push:
569569
branches:
570-
- master
570+
- master
571571
572572
jobs:
573-
build-deploy:
573+
deploy:
574574
runs-on: ubuntu-18.04
575575
steps:
576-
- uses: actions/checkout@v1
576+
- uses: actions/checkout@v2
577577
578-
- name: Setup Node
579-
uses: actions/setup-node@v1
580-
with:
581-
node-version: '10.x'
578+
- name: Setup Node
579+
uses: actions/setup-node@v1
580+
with:
581+
node-version: '10.x'
582582
583-
- name: Get yarn cache
584-
id: yarn-cache
585-
run: echo "::set-output name=dir::$(yarn cache dir)"
583+
- name: Get yarn cache
584+
id: yarn-cache
585+
run: echo "::set-output name=dir::$(yarn cache dir)"
586586
587-
- name: Cache dependencies
588-
uses: actions/cache@v1
589-
with:
590-
path: ${{ steps.yarn-cache.outputs.dir }}
591-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
592-
restore-keys: |
593-
${{ runner.os }}-yarn-
587+
- name: Cache dependencies
588+
uses: actions/cache@v1
589+
with:
590+
path: ${{ steps.yarn-cache.outputs.dir }}
591+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
592+
restore-keys: |
593+
${{ runner.os }}-yarn-
594594
595-
- run: yarn install
595+
- run: yarn install
596596
597-
- run: yarn build
597+
- run: yarn build
598598
599-
- run: yarn export
599+
- run: yarn export
600600
601-
- run: touch ./out/.nojekyll
601+
- run: touch ./out/.nojekyll
602602
603-
- name: deploy
604-
uses: peaceiris/actions-gh-pages@v2
605-
env:
606-
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
607-
PUBLISH_BRANCH: gh-pages
608-
PUBLISH_DIR: ./out
603+
- name: Deploy
604+
uses: peaceiris/actions-gh-pages@v3
605+
env:
606+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
607+
publish_dir: ./out
609608
```
610609

611610
### ⭐️ Vue and Nuxt

0 commit comments

Comments
 (0)