diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index dd4dc5e..11faa37 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -15,7 +15,6 @@ on: jobs: deploy-to-pytest: runs-on: ubuntu-latest - needs: [test] steps: - uses: actions/checkout@v2 - name: Set up Python @@ -27,10 +26,11 @@ jobs: python -m pip install --upgrade pip pip install build - name: Build package - run: python -m build - - name: Publish package to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 + run: | + echo "__version__ = '$(git describe --tags)'" > src/pyawscron/version.py + python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: user: __token__ - password: ${{ secrets.TEST_PYPI_PASSWORD }} - repository_url: https://test.pypi.org/legacy/ + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file