This is a Github Action to deploy file to Github Gist.
- uses: actions/checkout@v3
- name: Deploy
uses: exuanbo/actions-deploy-gist@v1
with:
token: ${{ secrets.TOKEN }}
gist_id: from_gist_url
file_path: build/book.pdf
file_type: binary
gist
scope is needed.TOKEN
..github/workflows/deploy.yml
as the example above.token
Personal access token for updating gist.
gist_id
Id portion from the gist url, e.g. https://gist.github.com/exuanbo/
e885afa349a0e5d1cfb408e46d6a37bc
.
gist_description
(optional)Description of the gist.
gist_file_name
(optional)Name of the file to be added in the gist. If not provided, the original file name from file_path
will be used.
file_path
Relative to the current repo's root directory, e.g. dist/foo.bar
.
file_type
(optional)Default to text
. It should be set to binary
if the file is image, pdf, etc.
MIT License © 2021 Exuanbo