-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ca2ac1
commit 6b2579e
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Semver | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- CHANGELOG.md | ||
- | ||
jobs: | ||
Deploy: | ||
name: Major release | ||
runs-on: ubuntu-20.04 | ||
if | ||
steps: | ||
- name: checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: increment version | ||
id: increment_version | ||
uses: paulhatch/[email protected] | ||
with: | ||
tag_prefix: "" | ||
major_pattern: (MAJOR) | ||
minor_pattern: (MINOR) | ||
version_format: ${major}.${minor}.${patch} | ||
debug: true | ||
- name: Tagging | ||
if: ${{ steps.increment_version.outputs.version_type == "major" }} | ||
run: | | ||
git tag ${{ steps.increment_version.outputs.version }} | ||
git push origin ${{ steps.increment_version.outputs.version }} | ||
- name: Release | ||
if: ${{ steps.increment_version.outputs.version_type == "major" }} | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ steps.increment_version.outputs.version }} | ||
release_name: Release ${{ steps.increment_version.outputs.version }} | ||
body: | | ||
Changes in this Release | ||
- First Change | ||
- Second Change | ||
draft: false | ||
prerelease: false | ||
|
||
|
||
|