Skip to content

Commit b73748c

Browse files
author
Kharude, Sachin
committed
separated release workflow
Signed-off-by: Kharude, Sachin <sachin.kharude@here.com>
1 parent 53f697f commit b73748c

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,3 @@ jobs:
6868
run: |
6969
make draft_changelog
7070
sh scripts/build_docs.sh
71-
72-
- name: Publish package
73-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
74-
uses: pypa/gh-action-pypi-publish@master
75-
with:
76-
user: __token__
77-
password: ${{ secrets.PYPI_TOKEN }}
78-
verbose: true

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python 3.8
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: 3.8
15+
- name: Publish package
16+
uses: pypa/gh-action-pypi-publish@master
17+
with:
18+
user: __token__
19+
password: ${{ secrets.PYPI_TOKEN }}
20+
verbose: true

0 commit comments

Comments
 (0)