This is a GitHub Action to sync GitHub Repo to GitHub Gist.
- This repo files synced to https://gist.github.com/pentatonicfunk/f161bf31b0493032bd23c6ef60ef5353
- Real life GitHub Repo Sample: https://github.com/pentatonicfunk/test-sync-gist
- name: Checkout
uses: actions/checkout@v1
- name: Gist Repo Sync
uses: pentatonicfunk/action-gist-repo-sync@v1
with:
gist_token: ${{ secrets.GIST_TOKEN }}
gist_id: from_gist_url
source_path: my_path
- Create a gist (public or secret) if you don't have one.
- Generate a new Personal access token. Only the
gist
scope is needed.
- Go to the repo Settings > Secrets. Add the generated token with name
GIST_TOKEN
. - Edit workflow file
.github/workflows/deploy.yml
as the example above.
Personal access token for updating gist.
ID portion from the gist url, e.g. https://gist.github.com/pentatonicfunk/
867f66a0f25f9d4ca70adf1cf1944529
.
Relative to the current repo's root directory, e.g. dist-docs
. Default the repo directory it self ./