@@ -676,41 +676,40 @@ name: github pages
676
676
on:
677
677
push:
678
678
branches:
679
- - master
679
+ - master
680
680
681
681
jobs:
682
- build- deploy:
682
+ deploy:
683
683
runs-on: ubuntu-18.04
684
684
steps:
685
- - uses: actions/checkout@v1
685
+ - uses: actions/checkout@v2
686
686
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'
692
692
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-
700
700
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
705
705
706
- - run: mkdocs build
706
+ - run: mkdocs build
707
707
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
714
713
` ` `
715
714
716
715
# ## ⭐️ mdBook (Rust)
@@ -727,31 +726,27 @@ name: github pages
727
726
on:
728
727
push:
729
728
branches:
730
- - master
729
+ - master
731
730
732
731
jobs:
733
732
deploy:
734
733
runs-on: ubuntu-18.04
735
734
steps:
735
+ - uses: actions/checkout@v2
736
736
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'
746
742
747
- - run: mdbook build
743
+ - run: mdbook build
748
744
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
755
750
` ` `
756
751
757
752
# ## ⭐️ Flutter Web
0 commit comments