Skip to content

Commit b3cfcb1

Browse files
committed
docs: update for v3
1 parent b1aaa85 commit b3cfcb1

File tree

1 file changed

+38
-43
lines changed

1 file changed

+38
-43
lines changed

README.md

Lines changed: 38 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -676,41 +676,40 @@ name: github pages
676676
on:
677677
push:
678678
branches:
679-
- master
679+
- master
680680
681681
jobs:
682-
build-deploy:
682+
deploy:
683683
runs-on: ubuntu-18.04
684684
steps:
685-
- uses: actions/checkout@v1
685+
- uses: actions/checkout@v2
686686
687-
- name: Setup Python
688-
uses: actions/setup-python@v1
689-
with:
690-
python-version: '3.6'
691-
architecture: 'x64'
687+
- name: Setup Python
688+
uses: actions/setup-python@v1
689+
with:
690+
python-version: '3.6'
691+
architecture: 'x64'
692692
693-
- name: Cache dependencies
694-
uses: actions/cache@v1
695-
with:
696-
path: ~/.cache/pip
697-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
698-
restore-keys: |
699-
${{ runner.os }}-pip-
693+
- name: Cache dependencies
694+
uses: actions/cache@v1
695+
with:
696+
path: ~/.cache/pip
697+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
698+
restore-keys: |
699+
${{ runner.os }}-pip-
700700
701-
- name: Install dependencies
702-
run: |
703-
python3 -m pip install --upgrade pip
704-
python3 -m pip install -r ./requirements.txt
701+
- name: Install dependencies
702+
run: |
703+
python3 -m pip install --upgrade pip
704+
python3 -m pip install -r ./requirements.txt
705705
706-
- run: mkdocs build
706+
- run: mkdocs build
707707
708-
- name: Deploy
709-
uses: peaceiris/actions-gh-pages@v2
710-
env:
711-
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
712-
PUBLISH_BRANCH: gh-pages
713-
PUBLISH_DIR: ./site
708+
- name: Deploy
709+
uses: peaceiris/actions-gh-pages@v3
710+
with:
711+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
712+
publish_dir: ./site
714713
```
715714

716715
### ⭐️ mdBook (Rust)
@@ -727,31 +726,27 @@ name: github pages
727726
on:
728727
push:
729728
branches:
730-
- master
729+
- master
731730
732731
jobs:
733732
deploy:
734733
runs-on: ubuntu-18.04
735734
steps:
735+
- uses: actions/checkout@v2
736736
737-
- uses: actions/checkout@v1
738-
with:
739-
fetch-depth: 1
740-
741-
- name: Setup mdBook
742-
uses: peaceiris/actions-mdbook@v1
743-
with:
744-
mdbook-version: '0.3.5'
745-
# mdbook-version: 'latest'
737+
- name: Setup mdBook
738+
uses: peaceiris/actions-mdbook@v1
739+
with:
740+
mdbook-version: '0.3.5'
741+
# mdbook-version: 'latest'
746742
747-
- run: mdbook build
743+
- run: mdbook build
748744
749-
- name: Deploy
750-
uses: peaceiris/actions-gh-pages@v2
751-
env:
752-
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
753-
PUBLISH_BRANCH: gh-pages
754-
PUBLISH_DIR: ./book
745+
- name: Deploy
746+
uses: peaceiris/actions-gh-pages@v3
747+
env:
748+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
749+
publish_dir: ./book
755750
```
756751

757752
### ⭐️ Flutter Web

0 commit comments

Comments
 (0)