Skip to content

Commit b7fe5e9

Browse files
BrunoSilvaAndradeBrunoSilvaAndrade
authored andcommitted
feat(pipeline): Adding automatic versioning pipeline
1 parent 1b7a04b commit b7fe5e9

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
name: Upload Python Package
1010

1111
on:
12+
push:
13+
tags:
14+
- 'v*'
1215
release:
1316
types: [published]
1417

.github/workflows/version.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Bump version
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Bump version and push tag
12+
id: tag_version
13+
uses: mathieudutour/github-tag-action@v6.0
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
- name: Create a GitHub release
17+
uses: ncipollo/release-action@v1
18+
with:
19+
tag: ${{ steps.tag_version.outputs.new_tag }}
20+
name: Release ${{ steps.tag_version.outputs.new_tag }}
21+
body: ${{ steps.tag_version.outputs.changelog }}

0 commit comments

Comments
 (0)