Skip to content

Commit

Permalink
add publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Dec 1, 2020
1 parent 0a8947b commit 7b912da
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*'

jobs:
conda:
Installer:
name: Release-Windows
runs-on: "windows-latest"
steps:
Expand Down Expand Up @@ -87,4 +87,28 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: compas_installer/dist/rhino3GS Setup 0.0.1.exe
asset_name: rhino3GS_${{ steps.tagName.outputs.tag }}.exe
asset_content_type: application/octet-stream
asset_content_type: application/octet-stream

Publish:

needs: Installer

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload --verbose dist/*

0 comments on commit 7b912da

Please sign in to comment.