From f573c991942346e7576fa851553fc4d7d393393f Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Wed, 11 Sep 2024 01:51:27 +0200 Subject: [PATCH] trying to push via ssh --- .github/workflows/deploy-gh-pages.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index a05eac4..a6e23e5 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -42,7 +42,6 @@ jobs: - name: Run build scripts run: | ./01-PREPARE-FOR-EDITS.sh - echo "going to sleep for 999999 units of time" eval "$(ssh-agent -s)" ssh-keyscan -t ed25519 github.com > ~/.ssh/known_hosts ssh-add - <<< "${{ secrets.DEPLOY_KEY }}" @@ -66,10 +65,13 @@ jobs: - name: Commit and push changes run: | cd gh-pages - git config --global user.name 'github-actions' - git config --global user.email 'github-actions@github.com' + # git config --global user.name 'github-actions' + # git config --global user.email 'github-actions@github.com' git add . + eval "$(ssh-agent -s)" + ssh-keyscan -t ed25519 github.com > ~/.ssh/known_hosts + ssh-add - <<< "${{ secrets.DEPLOY_KEY }}" git commit -m "Update GitHub Pages" - # git push origin docs + git push origin docs # try the x-access url - git push https://x-access-token:${{ secrets.ORG_PAT }}@github.com/zml/zml.git docs + # git push https://x-access-token:${{ secrets.ORG_PAT }}@github.com/zml/zml.git docs