Skip to content

Commit 9346ba1

Browse files
committed
[EN-1398] publish yml refactoring
1 parent 2f4ddc3 commit 9346ba1

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/publishpackage.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, windows-latest, macos-latest]
15-
python-version: [3.7]
15+
python-version: [3.6, 3.7, 3.8]
1616

1717
runs-on: ${{ matrix.os }}
1818

@@ -33,18 +33,15 @@ jobs:
3333
poetry config virtualenvs.create false
3434
poetry install --no-root
3535
shell: bash
36-
- name: Create package artifacts
36+
- name: Create tarball
37+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7
3738
run: |
38-
task build
39+
task build -f sdist
3940
shell: bash
40-
- name: Remove redundant files
41-
if: success()
41+
- name: Create wheel
42+
if: matrix.os == 'windows-latest' || matrix.os == 'macos-latest'
4243
run: |
43-
if [ "$RUNNER_OS" == "Linux" ]; then
44-
find dist/ -type f -iname *.whl -delete
45-
else
46-
find dist/ -type f -iname *.tar.gz -delete
47-
fi
44+
task build -f wheel
4845
shell: bash
4946
- name: Upload artifacts
5047
if: success()

0 commit comments

Comments
 (0)