Skip to content

A quick plugin to cover specific use case: create releases in GitHub and upload files for them. This is the very first version of the plugin. Any contribution is appreciated

Notifications You must be signed in to change notification settings

codefresh-plugins/cfstep-github-release

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release Codefresh Plugin

A quick plugin to cover specific use case: create releases in GitHub and upload files for them. The plugin also allows to do more complex actions overriding the command manually.

Basic usage

This example creates a release and uploads files to it:

github_prerelease:
  image: codefreshplugins/cfstep-github-release
  environment:
    - GITHUB_TOKEN=${{GITHUB_TOKEN}}
    - FILES=bin/app-*
    - PRERELEASE=true

Advanced usage

If one wants to do more actions to manage releases than just to create them, it is possible to override the behaviour with custom commands:

github_release_modify:
  image: codefreshplugins/cfstep-github-release
  commands:
    - github-release edit --user $CF_REPO_OWNER --repo $CF_REPO_NAME --tag $CF_BRANCH_TAG_NORMALIZED --name "$CF_BRANCH_TAG_NORMALIZED"
    - github-release delete --user $CF_REPO_OWNER --repo $CF_REPO_NAME --tag $CF_BRANCH_TAG_NORMALIZED
    - github-release --help

More details about the paramaters and examples see here

Environment Variables

  • GITHUB_TOKEN: token for access to GitHub
  • CF_REPO_OWNER: Codefresh provided variable containing repository owner name
  • CF_REPO_NAME: Codefresh provided variable containing repository name
  • CF_BRANCH_TAG_NORMALIZED: Codefresh provided variable containing tag name
  • CF_TARGET_BRANCH: Codefresh provided variable containing target branch (default branch if not set)
  • PRERELEASE: If true, this variable tells the plugin to create a pre-release
  • FILES: A glob expression for the list of the files to be uploaded

About

A quick plugin to cover specific use case: create releases in GitHub and upload files for them. This is the very first version of the plugin. Any contribution is appreciated

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 66.6%
  • Dockerfile 33.4%