Skip to content

Commit 97b44c1

Browse files
committed
add pypi publish
1 parent a8ea7fe commit 97b44c1

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'v*'
77

88
jobs:
9-
conda:
9+
Installer:
1010
name: Release-Windows
1111
runs-on: "windows-latest"
1212
steps:
@@ -85,4 +85,28 @@ jobs:
8585
upload_url: ${{ steps.create_release.outputs.upload_url }}
8686
asset_path: compas_installer/dist/rhinoGS Setup 0.0.1.exe
8787
asset_name: rhinoGS_${{ steps.tagName.outputs.tag }}.exe
88-
asset_content_type: application/octet-stream
88+
asset_content_type: application/octet-stream
89+
90+
Publish:
91+
92+
needs: Installer
93+
94+
runs-on: ubuntu-latest
95+
96+
steps:
97+
- uses: actions/checkout@v2
98+
- name: Set up Python
99+
uses: actions/setup-python@v2
100+
with:
101+
python-version: '3.x'
102+
- name: Install dependencies
103+
run: |
104+
python -m pip install --upgrade pip
105+
pip install setuptools wheel twine
106+
- name: Build and publish
107+
env:
108+
TWINE_USERNAME: __token__
109+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
110+
run: |
111+
python setup.py sdist bdist_wheel
112+
twine upload --verbose dist/*

0 commit comments

Comments
 (0)