Skip to content

Commit 96df547

Browse files
Merge pull request #14 from BrunoSilvaAndrade/develop
fix: Removing python-publish.yml
2 parents 5214c05 + 8fd3441 commit 96df547

File tree

2 files changed

+27
-46
lines changed

2 files changed

+27
-46
lines changed

.github/workflows/python-publish.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/version.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,45 @@
1-
name: version
1+
name: Bump version
22
on:
33
push:
44
branches:
55
- master
66
jobs:
7-
build:
7+
versioning:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11+
1112
- name: Bump version and push tag
1213
id: tag_version
1314
uses: mathieudutour/github-tag-action@v6.0
1415
with:
1516
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
1618
- name: Create a GitHub release
1719
uses: ncipollo/release-action@v1
1820
with:
1921
tag: ${{ steps.tag_version.outputs.new_tag }}
2022
name: Release ${{ steps.tag_version.outputs.new_tag }}
21-
body: ${{ steps.tag_version.outputs.changelog }}
23+
body: ${{ steps.tag_version.outputs.changelog }}
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v3
27+
with:
28+
python-version: '3.x'
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install build twine
34+
pip install -r requirements.txt
35+
36+
- name: Build package
37+
env:
38+
RELEASE_VERSION: ${{ steps.tag_version.outputs.new_tag }}
39+
run: python -m build -w -s
40+
41+
- name: Publish package
42+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
43+
with:
44+
user: __token__
45+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)