-
Make sure you have a
changelog.md
orCHANGELOG.md
file in the root directory of your repository that is similar to this one:## [v1.1.0](https://github.com/user/repository/releases/tag/v1.1.0) Some release notes. ## [v1.0.0](https://github.com/user/repository/releases/tag/v1.0.0) Some more release notes.
-
Create a new workflow file with the following content:
name: publish on: push: tags: - v* jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Publish Release uses: boywithkeyboard/publisher@v3
-
To trigger the workflow, simply push a new tag.
-
tag
(context.ref
by default)The tag name for the new release.
-
draft
(false
by default)Create the new release as a draft.
-
prerelease
(false
by default)Create the new release as a pre-release.
-
token
($GITHUB_TOKEN
by default)The access token to use for creating the new release.