diff --git a/.github/workflows/test-deploy-workflow.yml b/.github/workflows/test-deploy-workflow.yml index 289ef5d..66c670d 100644 --- a/.github/workflows/test-deploy-workflow.yml +++ b/.github/workflows/test-deploy-workflow.yml @@ -1,6 +1,9 @@ on: pull_request: types: [opened, reopened] + push: + branches-ignore: + - master jobs: deploy: runs-on: macos-latest @@ -13,13 +16,14 @@ jobs: - uses: actions/checkout@v4 - name: Build PyReindexer run: | - brew install python-setuptools - python3 setup.py sdist bdist_wheel + python3 -m pip install --upgrade pip + python3 setup.py setuptools sdist bdist_wheel shell: bash - name: Deploy PyReindexer To Test-Pypi env: TESTPYPI_TOKEN: ${{ secrets.TESTPYPI_TOKEN }} run: | + python3 -m pip install --upgrade pip python3 -m pip install twine python3 -m twine upload --verbose --repository testpypi dist/* -u __token__ -p pypi-$TESTPYPI_TOKEN # wait for deploy finishing on test pypi server