Skip to content

GitHub Action to upload build artifacts to GitHub releases.

License

Notifications You must be signed in to change notification settings

tcr/github-action-ghr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action to upload build artifacts to GitHub releases using ghr. The action will trigger on pushes to tags and exit neutrally otherwise.

Secrets

  • GITHUB_TOKENRequired. Grants access to the repository.

Variables

  • GHR_PATHRequired. Path to the artifacts you want to upload. You can specify a file or a directory. If you provide a directory, all files in that directory will be uploaded.

  • GHR_COMPRESSOptional. Compress files before uploading them. Can be either gz, bz2 or xz. The correct file extension will be appended (e.g. .tar.gz).

Usage example

workflow "Build and release on push" {
  on = "push"
  resolves = ["Build", "Release"]
}

action "Build" {
  uses = "./"
}

action "Release" {
  uses = "fnkr/github-action-ghr@v1"
  needs = ["Build"]
  secrets = ["GITHUB_TOKEN"]
  env = {
    GHR_PATH = "build/"
    GHR_COMPRESS = "xz"
  }
}

About

GitHub Action to upload build artifacts to GitHub releases.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 57.2%
  • Dockerfile 42.8%