The NewTaggedRelease
GitHub Action is designed to create a GitHub release automatically for you.
You can trigger the action.yml
by workflow_call
to create the release automatically. The workflow contains several steps to act:
- Checkout the repository
- Call the
newtaggedrelease.ps1
script
name
: This is the name of the release, if empty, this is set to versionversion
: This is the versionbody
: The body of the releaseprerelease
: Mark this as a pre-prereleasereleasenotes
: Add the generated releasenotesverbose
: A value of verbose will output additional information. This input is not required.github_token
: This is the built-in Github Token; this is passed as an environment variable. This input is required.
The PowerShell script uses the GitHub API to create a release. It parses the project file to determine the version number; this is then assigned to the tag_name and name property of the release.
There are a few different ways to use this action; here are a few examples to get you started.
jobs:
create_release:
uses: mod-posh/[email protected]
with:
name: '"Our latest awesome release"'
version: '"2.0.0"'
verbose: 'verbose'
github_token: ${{ secrets.GITHUB_TOKEN }}
Note
This example is used directly as part of a larger workflow The verbose option will output a little more detail in the logs
This project is licensed under the Gnu GPL-3.