Skip to content

Commit 655e089

Browse files
committed
[EN-1398] artifact creation added
1 parent 3843b0a commit 655e089

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/publishpackage.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- '*'
99

1010
jobs:
11-
publishing:
11+
build:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, windows-latest, macos-latest]
@@ -46,6 +46,35 @@ jobs:
4646
find dist/ -type f -iname *.tar.gz -delete
4747
fi
4848
shell: bash
49+
- name: Upload artifacts
50+
if: success()
51+
uses: actions/upload-artifact@v2
52+
with:
53+
name: artifacts
54+
path: dist/
55+
56+
57+
publish:
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
61+
- uses: actions/checkout@v2
62+
- name: Set up Python 3.7
63+
uses: actions/setup-python@v1
64+
with:
65+
python-version: 3.7
66+
- name: Install poetry
67+
run: |
68+
pip install poetry
69+
shell: bash
70+
- name: Clear dist folder
71+
run: |
72+
rm -rf dist/
73+
- name: Download
74+
uses: actions/download-artifact@v2
75+
with:
76+
name: artifacts
77+
path: dist/
4978
- name: Publish to PyPI
5079
if: success()
5180
run: |

0 commit comments

Comments
 (0)