Skip to content

Commit

Permalink
Split pypi and test
Browse files Browse the repository at this point in the history
  • Loading branch information
dlilien committed Nov 2, 2023
1 parent 7b18645 commit c2865b4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ jobs:
name: build-source
path: dist

Upload-PyPi:
Upload-Test-PyPi:
runs-on: ubuntu-latest
needs: [Source-Build, Mac-Build, Windows-Build, Linux-Build]
environment: release
environment: release-test
permissions:
id-token: write
steps:
Expand All @@ -235,6 +235,22 @@ jobs:
repository-url: https://test.pypi.org/legacy/
skip-existing: true

Upload-PyPi:
runs-on: ubuntu-latest
needs: [Source-Build, Mac-Build, Windows-Build, Linux-Build]
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3

- name: Collect packages
run: |
if [ ! -d dist ]; then mkdir dist; fi
for d in build*; do mv -f $d/* dist/; done
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
from Cython.Build import cythonize
ext_modules = cythonize(ext_modules)

version = '1.1.8.post3'
version = '1.1.8.post4'
packages = ['impdar',
'impdar.lib',
'impdar.bin',
Expand Down

0 comments on commit c2865b4

Please sign in to comment.