This is a fork of exuanbo/actions-deploy-gist. Unfortunately, the original does not seems to be maintained anymore. This fork exists purely for preserving backward compatibility for existing workflows. If you need to deploy to gist, you should use Github CLI instead.
This is a Github Action to deploy file to Github Gist.
- uses: actions/checkout@v4
- name: Deploy
uses: end2endzone/actions-deploy-gist@main
with:
token: ${{ secrets.TOKEN }}
gist_id: from_gist_url
file_path: build/book.pdf
file_type: binary
- 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
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/exuanbo/
e885afa349a0e5d1cfb408e46d6a37bc
.
Description of the gist.
Name of the file to be added in the gist. If not provided, the original file name from file_path
will be used.
Relative to the current repo's root directory, e.g. dist/foo.bar
.
Default to text
. It should be set to binary
if the file is image, pdf, etc.
MIT License Β© 2021 Exuanbo