diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index e15eb6023..6080191f5 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -36,4 +36,3 @@ jobs: run: | python setup.py sdist bdist_wheel twine upload dist/*.whl - twine upload dist/*.gz diff --git a/.github/workflows/upload_tar.yml b/.github/workflows/upload_tar.yml new file mode 100644 index 000000000..29f677d09 --- /dev/null +++ b/.github/workflows/upload_tar.yml @@ -0,0 +1,34 @@ +name: Upload MacOS Python Package + +on: + release: + types: [prereleased, published] + +jobs: + deploy: + runs-on: macos-latest + strategy: + matrix: + python-version: [ '3.7' ] + steps: + - uses: actions/checkout@v1 + - name: Set Python environment + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + architecture: x64 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + pip install numpy cython pyaml pyqt5 pyshp + + - name: Build + run: | + python setup.py sdist bdist_wheel + + - name: Publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: twine upload dist/*.gz \ No newline at end of file