Skip to content

Instantly share code, notes, and snippets.

@sundowndev
Last active August 6, 2021 07:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sundowndev/1a6538555d8ae4b678e8ebed628d5231 to your computer and use it in GitHub Desktop.
Save sundowndev/1a6538555d8ae4b678e8ebed628d5231 to your computer and use it in GitHub Desktop.
How to push to a public Github repo and trigger a deploy event

How to push to a public Github repo and trigger a deploy event

Setup your CI job

git remote set-url origin https://sundowndev:${{ secrets.GITHUB_TOKEN }}@github.com/sundowndev/livre-blanc-video.git
git config user.name "${{ secrets.GITHUB_USER }}"
git config user.email "${{ secrets.GITHUB_USER }}@users.noreply.github.com"

# You can now push
# git add --all
# git push
@doogy2
Copy link

doogy2 commented Aug 6, 2021

git remote set-url origin https://sundowndev:${{ secrets.GITHUB_TOKEN }}@github.com/sundowndev/livre-blanc-video.git
git config user.name "${{ secrets.GITHUB_USER }}"
git config user.email "${{ secrets.GITHUB_USER }}@users.noreply.github.com"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment