Skip to content

Instantly share code, notes, and snippets.

@sundowndev
sundowndev / readme.md
Last active August 6, 2021 07:11
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