Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📌 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 one
View on Marketplace

Repository files navigation

GitHub release (latest by date)GitHub Workflow Status (branch)libera manifesto

This is a Github Action to deploy file to Github Gist.

Quick start

-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

Setup

Prep work

  1. Create a gist (public or secret) if you don't have one.
  2. Generate a newPersonal access token. Only thegist scope is needed.

Project setup

  1. Go to the repoSettings > Secrets. Add the generated token with nameTOKEN.
  2. Edit workflow file.github/workflows/deploy.yml as the example above.

Options

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 fromfile_path will be used.

file_path

Relative to the current repo's root directory, e.g.dist/foo.bar.

file_type (optional)

Default totext. It should be set tobinary if the file is image, pdf, etc.

License

MIT License © 2021Exuanbo

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp