From 05e13ca83aa4a3c75f642b192929d10900d82680 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 2 Jul 2021 09:04:36 -0700 Subject: [PATCH] Switch to GITHUB_TOKEN for deploy This reduces the tokens we need to manage and uses one scoped to this repo. --- .github/workflows/build.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 23fb1ec4..12377a88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,18 +40,8 @@ jobs: - name: Build site with jekyll run: | bundle exec jekyll build -d build - - name: Commit and Push to gh-pages - run: | - # https://github.com/helaili/jekyll-action/blob/master/entrypoint.sh#L49 - cd build - touch .nojekyll - git init - git config user.name "${GITHUB_ACTOR}" - git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" - git add . - git commit -m 'jekyll build from Action' - git push --force https://${ADABOT_PAT}@github.com/${GITHUB_REPOSITORY}.git HEAD:gh-pages - rm -fr .git - cd .. - env: - ADABOT_PAT: ${{ secrets.ADABOT_PAT }} + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build