Skip to content

Commit ce5718e

Browse files
committed
PB-1968: Add github workflows
1 parent 0029ac7 commit ce5718e

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: on-pr
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
- edited
10+
11+
jobs:
12+
pr-edit:
13+
uses: geoadmin/.github/.github/workflows/pr-auto-semver.yml@master

.github/workflows/semver.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: on-push
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
9+
jobs:
10+
release:
11+
uses: geoadmin/.github/.github/workflows/semver-release.yml@master

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,11 @@ make lint
172172
#or
173173
make format-lint
174174
```
175+
176+
## Release and Publish
177+
178+
New release and publish on PyPI is done automatically upon PR merge into master branch. For bug fixes and small new features, PR can be directly open on master. Then the PR title define the version bump as follow:
179+
180+
- PR title and/or commit message contains #major => major version is bumped
181+
- PR title and/or commit message contains #patch or head branch name starts with bug-|hotfix-|bugfix- => patch version is bumped
182+
- Otherwise by default the minor version is bumped

0 commit comments

Comments
 (0)