Create calver release (YYYY.VV)
Branch to tag. Default master
.
The title of the release. Default release: version ${NEXT_RELEASE}
.
The message of the release. Default generate conventional changelog.
Is a draft ?. Default false
.
Is a pre-release ?. Default false
.
Create a new release ?. Default true
.
Set the date format in posix shell. Default %Y.%V
(Year.Week - 2020.45).
Extended regexp for grep to match existing versions. It has to be consistent with date_format
. Default ^20[^\-]*$
(catches everything without -
starting 20
).
The new release name.
steps:
- uses: actions/checkout@v2
- name: Calver Release
uses: StephaneBour/actions-calver@master
id: calver
with:
date_format: "%Y-%m-%d"
release: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
env:
VERSION: ${{ steps.calver.outputs.release }}
run: ./deploy ${VERSION}