Github Action to release projects using Semantic Release.
This github action automates the whole package release workflow including: determining the next version number, generating the release notes, and publishing the package.
name: Release project
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Release
uses: huggingface/semver-release-action@latest
The branches on which releases should happen. By default semantic-release will release: See : https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches
- name: Helm Publish Action
uses: huggingface/helm-publish-action@latest
with:
branches: ["main"]
The objective of the dry-run mode is to get a preview of the pending release. Dry-run mode skips the following steps: prepare, publish, addChannel, success and fail. In addition to this it prints the next version and release notes to the console.
- name: Helm Publish Action
uses: huggingface/helm-publish-action@latest
with:
dryRun: true
JSON Options to pass to commit analyzer plugins. See : https://github.com/semantic-release/commit-analyzer#options
- name: Helm Publish Action
uses: huggingface/helm-publish-action@latest
with:
commitAnalyzerPluginOpts: {...}
Tag as tag-prefix + version, example: v1.2.3
New version or current version if not released, example: 1.2.3
Changelog of the new version
True if new version was released