Skip to content

Merge pull request #36 from premisedata/python3.8 #22

Merge pull request #36 from premisedata/python3.8

Merge pull request #36 from premisedata/python3.8 #22

Workflow file for this run

name: Semver
on:
push:
branches:
- main
jobs:
Deploy:
name: Minor/Patch release
runs-on: ubuntu-20.04
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 == 'minor' || steps.increment_version.outputs.version_type == 'patch' }}
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 == 'minor' || steps.increment_version.outputs.version_type == 'patch' }}
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