Skip to content

Commit

Permalink
trying to push via ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed Sep 10, 2024
1 parent 0872630 commit f573c99
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 '[email protected]'
# git config --global user.name 'github-actions'
# git config --global user.email '[email protected]'
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

0 comments on commit f573c99

Please sign in to comment.