diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 6c5023e..03632ac 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -18,19 +18,27 @@ jobs: package-name: altamisa token: ${{ secrets.BOT_TOKEN }} - build-publish: - runs-on: ubuntu-latest - needs: release - steps: + - uses: actions/checkout@v4 + if: ${{ steps.release.outputs.release_created }} + with: + fetch-depth: 0 + + - name: Set up Python + if: ${{ steps.release.outputs.release_created }} + uses: actions/setup-python@v4 + with: + python-version: '3.x' - - name: Checkout repository - uses: actions/checkout@v3 + - name: Build package if: ${{ steps.release.outputs.release_created }} + run: | + python -m pip install --upgrade pip + pip install -U setuptools + python setup.py sdist - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + - name: Publish to PyPI if: ${{ steps.release.outputs.release_created }} + uses: pypa/gh-action-pypi-publish@master with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + user: __token__ + password: ${{ secrets.PYPI_TOKEN }}