From c53bfb7ca4f9840bd7042daff66b06d24818cfbb Mon Sep 17 00:00:00 2001 From: Raffael Tancman Date: Tue, 30 May 2023 09:24:14 -0300 Subject: [PATCH] Fix the githubactions deployment --- .github/workflows/deploy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7939830..43073d7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,6 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + token: ${{ secrets.GH_PAGES_GITHUB_TOKEN }} + ref: jekyll - name: setup-ruby uses: ruby/setup-ruby@v1 with: @@ -22,7 +25,8 @@ jobs: run: | cd ./_site git init - git config user.name "GithubActions CI/CD" + git config user.name github-actions + git config user.email github-actions@github.com git add . && git commit -m "Deploy github-pages" - git remote add origin https://rtancman:${{ secrets.GH_PAGES_GITHUB_TOKEN }}@github.com/pythonbnu/pythonbnu.github.io.git + git remote add origin https://github.com/pythonbnu/pythonbnu.github.io.git git push origin master -f \ No newline at end of file