You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Deploy to Gist
v1.1.0
This is a Github Action to deploy your file to Github Gist.
- uses: actions/checkout@v2
- name: Deploy
uses: exuanbo/actions-deploy-gist@v1
with:
token: ${{ secrets.TOKEN }}
gist_id: from_your_gist_url
gist_description: "foo bar"
gist_file_name: foo.bar
file_path: ./dist/foo.bar
- Create a gist (public or secret) if you don't have one.
- Generate a new Personal access token. Only the
gist
scope is needed. Check Scopes for OAuth Apps for details.
- 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
.
Optional 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
.
MIT License © 2021 Exuanbo