From d4baa599241b03da492c4230e3e36cf1962aed4c Mon Sep 17 00:00:00 2001 From: Daniel Schiavini Date: Tue, 15 Oct 2024 09:34:18 +0200 Subject: [PATCH] fix: release script --- .github/workflows/release.yaml | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fc4aec5..59b14fe 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,21 +10,27 @@ jobs: permissions: id-token: write + strategy: + matrix: + python-version: [ "3.12" ] + + name: "release: python ${{ matrix.python-version }}" + timeout-minutes: 5 + steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Python - uses: actions/setup-python@v5 - with: - cache: "pip" + - name: Setup Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + cache: "pip" + python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine build + - name: Install Requirements + run: pip install setuptools wheel twine build - - name: Build - run: python -m build + - name: Build + run: python -m build - - name: Publish - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1