Plugin: provider-git
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Creates git tags and optionally pushes branch updates through the local Git remote. Use it when your release flow only needs native Git operations instead of a forge-specific API.
Installation
Section titled “Installation”go install github.com/SemRels/provider-git@latestEach 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.
Configuration
Section titled “Configuration”version: 1plugins: - name: provider-git path: provider-git args: remote: origin push_branch: true signing_key: ABCDEF1234567890Environment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_REMOTE | no | origin | Remote name used for push operations. |
SEMREL_PLUGIN_SIGNING_KEY | no | — | Optional signing key for annotated or signed tags. |
SEMREL_PLUGIN_PUSH_BRANCH | no | false | Push the current branch in addition to the tag. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_TAG_NAMESEMREL_NEXT_VERSIONSEMREL_BRANCHSEMREL_TAG_PREFIXSEMREL_DRY_RUN
Behavior
Section titled “Behavior”For v1.4.0, the provider can create the tag locally and push it to origin. If push_branch is true, it can also push the release commit on the current branch.