From 48fb20c1fd699b16ec3ed650e863e7a3e2b6f8a5 Mon Sep 17 00:00:00 2001 From: freearhey Date: Wed, 10 Mar 2021 01:49:10 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index fc9c598c..7f9508f8 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -9,11 +9,10 @@ jobs: uses: actions/checkout@v2 - name: Update Guide run: ./run.sh - - name: Commit Changes - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git add . - git diff-index --quiet HEAD || git commit -m "[Bot] Update Guide" - git pull - git push + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@master + env: + ACCESS_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} + BASE_BRANCH: master + BRANCH: gh-pages + FOLDER: .gh-pages