Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Deploy to Gist

Actions
📌 Deploy file to Github Gist
v1.0.1
Star (41)

Deploy to Gist

GitHub Workflow Status (branch)

Quick start

- uses: actions/checkout@v2
- name: Deploy
  uses: exuanbo/actions-deploy-gist@v1
  with:
    token: ${{ secrets.TOKEN }}
    gist_id: from_your_gist_url
    gist_file_name: foo.bar
    file_path: ./dist/foo.bar

Setup

Prep work

  1. Create a public gist if you don't have one.
  2. Generate a new Personal access token. Only the gist scope is needed.

Check Scopes for OAuth Apps for details.

Project setup

  1. Edit your repo .github/workflows/foo.yml like in the example.
  2. Go to your repo Settings > Secrets. Add the token generated above as TOKEN.

Options

gist_id

The id portion from your gist url, e.g. https://gist.github.com/exuanbo/e885afa349a0e5d1cfb408e46d6a37bc.

gist_file_name

Name of the file to be added in your gist. If not provided, the original file name from file_path will be used.

file_path

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

License

MIT

Deploy to Gist is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

📌 Deploy file to Github Gist
v1.0.1

Deploy to Gist is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.