Zum Inhalt springen

Plugin: provider-github

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Publishes releases to GitHub using the generated SemRel tag, version, and changelog. It supports draft and prerelease flags and can upload matching assets from the local workspace.

Terminal window
go install github.com/SemRels/provider-github@latest

Each plugin is a standalone Go binary. Keep it on your PATH or reference it with path: in .semrel.yaml. If you keep secrets in a .env file, load them with semrel --env-file .env release.

version: 1
plugins:
- name: provider-github
path: provider-github
args:
token: '${{ env.GITHUB_TOKEN }}'
owner: SemRels
repo: semrel
draft: false
prerelease: false
asset_glob: 'dist/*'
NameRequiredDefaultDescription
SEMREL_PLUGIN_TOKENyesGitHub token used to create the release.
SEMREL_PLUGIN_OWNERnocurrent repository ownerRepository owner or organization.
SEMREL_PLUGIN_REPOnocurrent repository nameRepository name to publish into.
SEMREL_PLUGIN_DRAFTnofalseCreate the release as a draft.
SEMREL_PLUGIN_PRERELEASEnofalseMark the release as a prerelease.
SEMREL_PLUGIN_ASSET_GLOBnoGlob pattern for release assets to upload.
  • SEMREL_TAG_NAME
  • SEMREL_NEXT_VERSION
  • SEMREL_CURRENT_VERSION
  • SEMREL_CHANGELOG
  • SEMREL_DRY_RUN

For v1.4.0, the provider can create a GitHub release, attach files matching dist/*, and publish the SemRel changelog as the release notes.