From 13859b8fe0c2a8837e19e00536e31d102de700ae Mon Sep 17 00:00:00 2001 From: Sivan Date: Fri, 21 Feb 2020 01:49:22 +0800 Subject: [PATCH] fix: fix action --- .github/workflows/deploy.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ec04246..33a0cd6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,13 +9,14 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master + - name: Checkout + uses: actions/checkout@v2 + with: + persist-credentials: false - - name: Deploy to GitHub Pages - uses: Cecilapp/GitHub-Pages-deploy@master - env: - EMAIL: sun.sivan@gmail.com - GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} - BASE_BRANCH: master - BUILD_DIR: demo + - name: Build and Deploy + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + BRANCH: gh-pages + FOLDER: demo