Skip to content

Commit

Permalink
test pypi action 3
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonDylan committed Aug 2, 2021
1 parent 9e8209e commit a1d003d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ jobs:
python -m pip install poetry==${{ env.POETRY_VERSION }}
poetry install
- name: Build Python package and Upload to TestPyPi
shell: bash -l {0}
env:
TEST_PYPI_TOKEN_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: |
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi --username "__token__" --password $TEST_PYPI_TOKEN_PASSWORD
- name: Lint
if: ${{ matrix.python-version == env.PYTHON_MAIN_VERSION }}
run: |
Expand All @@ -48,16 +57,6 @@ jobs:
pip install coverage
bash <(curl -s https://codecov.io/bash)
- name: Build Python package and Upload to TestPyPi
shell: bash -l {0}
env:
TEST_PYPI_TOKEN_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: |
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi --username "__token__" --password $TEST_PYPI_TOKEN_PASSWORD
- name: Build Python package and Upload to PyPi
shell: bash -l {0}
if: startsWith( github.ref, 'refs/tags/v') && matrix.python-version == env.PYTHON_MAIN_VERSION
Expand Down

0 comments on commit a1d003d

Please sign in to comment.