From: billchenchina Date: Wed, 27 Jan 2021 12:49:25 +0000 (+0800) Subject: Fix github actions X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a15d4983470546d39b9242460c083e8c8d7d8988;p=oi-wiki%2Fmain.git Fix github actions --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9af2c9e0..41aa012d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,11 +36,12 @@ jobs: - name: Generate redirects run: python scripts/gen_redirect.py - name: Deploy to gh-pages - if: ${{ github.event_name == push }} + if: ${{ github.event_name == 'push' }} uses: peaceiris/actions-gh-pages@v3 with: - - github_token: ${{ secrets.GITHUB_TOKEN }} - - publish_dir: ./site + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site + force_orphan: true - name: BaiduPusher - if: ${{ github.event_name == push && env.BaiduToken }} + if: ${{ github.event_name == 'push' && env.BaiduToken }} run: chmod +x scripts/BaiduPusher.sh && ./scripts/BaiduPusher.sh