-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from daniel-larraz/use-gh-token
Use PAT correctly in GH workflow
- Loading branch information
Showing
1 changed file
with
2 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,19 +20,14 @@ jobs: | |
- name: Deploy tutorial on the cvc5 website | ||
if: (github.repository == 'cvc5/tutorials') && (github.ref == 'refs/heads/main') | ||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
run: | | ||
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | ||
ssh-add - <<< "${{ secrets.CVC5_WEBSITE_TOKEN }}" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "cvc5-bot" | ||
git clone git@github.com:cvc5/cvc5.github.io.git website/ | ||
git clone https://github.com/cvc5/cvc5.github.io.git website | ||
rm -r website/tutorials/beginners | ||
cp -r beginners/_build/html website/tutorials/beginners | ||
cd website/ | ||
git add tutorials/beginners | ||
git commit -m "Deploy tutorials from source repo" | ||
git push | ||
git push https://$GITHUB_ACTOR:${{ secrets.CVC5_WEBSITE_TOKEN }}@github.com/cvc5/cvc5.github.io.git main |