From 7dd1d92e0ca9eb5997b904dd32e8f971b7545495 Mon Sep 17 00:00:00 2001 From: sellth Date: Thu, 18 Jan 2024 10:27:11 +0100 Subject: [PATCH] Update release-please.yml --- .github/workflows/release-please.yml | 30 ++++++++++++++++++---------- 1 file changed, 19 insertions(+), 11 deletions(-) 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 }}