Giter Site home page Giter Site logo

dumpmemory / actions-deploy-gist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raphiiko/actions-deploy-gist

0.0 1.0 0.0 1.08 MB

๐Ÿ“Œ Deploy file to Github Gist

Home Page: https://github.com/marketplace/actions/deploy-to-gist

License: MIT License

JavaScript 6.57% TypeScript 93.43%

actions-deploy-gist's Introduction

Deploy to Gist

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: Deploy
  uses: exuanbo/actions-deploy-gist@v1
  with:
    token: ${{ secrets.TOKEN }}
    gist_id: from_gist_url
    file_path: build/book.pdf
    file_type: binary

Setup

Prep work

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

Project setup

  1. Go to the repo Settings > Secrets. Add the generated token with name TOKEN.
  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 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.

License

MIT License ยฉ 2021 Exuanbo

actions-deploy-gist's People

Contributors

exuanbo avatar renovate-bot avatar dependabot[bot] avatar seekingmeaning avatar raphiiko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.