diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ebfc36..5304054 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Python package +name: CI tests via tox on: push: diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3b536c9..bd7291f 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -32,13 +32,8 @@ jobs: run: tox publish: - name: upload release to PyPI runs-on: ubuntu-latest needs: test - environment: release - permissions: - # IMPORTANT: this permission is mandatory for trusted publishing - id-token: write steps: - uses: actions/checkout@v3 @@ -52,9 +47,10 @@ jobs: python -m pip install --upgrade pip python -m pip install poetry poetry poetry-plugin-export - - name: Build - run: poetry build - - - name: publish - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Build and publish + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} + run: | + poetry build + poetry publish