From b143cafb8c1f827722bce31b9d745c2c476586be Mon Sep 17 00:00:00 2001 From: Mick Vleeshouwer Date: Sun, 2 May 2021 22:36:44 +0200 Subject: [PATCH] Fix release pipeline --- .github/workflows/release.yml | 57 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9776947..66c14e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,32 +10,31 @@ on: jobs: deploy: runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Set up Poetry - uses: Gr1N/setup-poetry@v4 - - name: Bump Poetry version - run: | - tag=${{ github.event.release.tag_name }} - version_number=${tag#?} - poetry version $version_number - - name: Commit changes - uses: EndBug/add-and-commit@v4 - with: - message: "Bump version to ${{ github.event.release.tag_name }}" - add: "pyproject.toml" - ref: "master" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Build and publish to PyPi - env: - POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} - run: | - poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} - poetry build - poetry publish + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Set up Poetry + uses: Gr1N/setup-poetry@v4 + - name: Bump Poetry version + run: | + tag=${{ github.event.release.tag_name }} + version_number=${tag#?} + poetry version $version_number + - name: Commit changes + uses: EndBug/add-and-commit@v4 + with: + message: "Bump version to ${{ github.event.release.tag_name }}" + add: "pyproject.toml" + ref: "master" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build and publish to PyPi + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} + run: | + poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + poetry build + poetry publish