From 027c49fb69749f5a8f85999a20a2ee8135ca87d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Gr=C3=B3dek?= Date: Fri, 3 Nov 2023 14:28:49 +0100 Subject: [PATCH] Try to fix release workflow --- .github/workflows/release.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec8831b..db202a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,15 +4,32 @@ on: workflow_dispatch jobs: pypi-publish: - name: upload release to PyPI - runs-on: ubuntu-latest - # Specifying a GitHub environment is optional, but strongly encouraged + timeout-minutes: 10 environment: release + name: build package and upload release to PyPI + runs-on: ubuntu-latest permissions: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: - # retrieve your distributions here + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.11 + + - name: Setup venv + run: . ./setup_dev_env.sh + + - name: Install build + run: python -m pip install -U build + + - name: Bump version as release + run: ./bump_version.sh release + + - name: Build package + run: | + python -m build - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1