generated fromactions/typescript-action
- Notifications
You must be signed in to change notification settings - Fork13
📌 Deploy file to Github Gist
License
NotificationsYou must be signed in to change notification settings
exuanbo/actions-deploy-gist
Use this GitHub action with your project
Add this Action to an existing workflow or create a new oneFolders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is a Github Action to deploy file to Github Gist.
-uses:actions/checkout@v3-name:Deployuses:exuanbo/actions-deploy-gist@v1with:token:${{ secrets.TOKEN }}gist_id:from_gist_urlfile_path:build/book.pdffile_type:binary
- Create a gist (public or secret) if you don't have one.
- Generate a newPersonal access token. Only the
gistscope is needed.
- Go to the repoSettings > Secrets. Add the generated token with name
TOKEN. - Edit workflow file
.github/workflows/deploy.ymlas 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 fromfile_path will be used.
Relative to the current repo's root directory, e.g.dist/foo.bar.
Default totext. It should be set tobinary if the file is image, pdf, etc.
MIT License © 2021Exuanbo
About
📌 Deploy file to Github Gist
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors4
Uh oh!
There was an error while loading.Please reload this page.