diff --git a/README.md b/README.md index 7d404791f..6cedd9942 100644 --- a/README.md +++ b/README.md @@ -676,41 +676,40 @@ name: github pages on: push: branches: - - master + - master jobs: - build-deploy: + deploy: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - - name: Setup Python - uses: actions/setup-python@v1 - with: - python-version: '3.6' - architecture: 'x64' + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: '3.6' + architecture: 'x64' - - name: Cache dependencies - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - - name: Install dependencies - run: | - python3 -m pip install --upgrade pip - python3 -m pip install -r ./requirements.txt + - name: Install dependencies + run: | + python3 -m pip install --upgrade pip + python3 -m pip install -r ./requirements.txt - - run: mkdocs build + - run: mkdocs build - - name: Deploy - uses: peaceiris/actions-gh-pages@v2 - env: - ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: ./site + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_dir: ./site ``` ### ⭐️ mdBook (Rust) @@ -727,31 +726,27 @@ name: github pages on: push: branches: - - master + - master jobs: deploy: runs-on: ubuntu-18.04 steps: + - uses: actions/checkout@v2 - - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1 - with: - mdbook-version: '0.3.5' - # mdbook-version: 'latest' + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: '0.3.5' + # mdbook-version: 'latest' - - run: mdbook build + - run: mdbook build - - name: Deploy - uses: peaceiris/actions-gh-pages@v2 - env: - ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} - PUBLISH_BRANCH: gh-pages - PUBLISH_DIR: ./book + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + env: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_dir: ./book ``` ### ⭐️ Flutter Web