From c2e68fed6f6d5cbade6498784ddd90a1ce73bc23 Mon Sep 17 00:00:00 2001 From: Yasser Tahiri Date: Tue, 2 Jan 2024 15:29:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Update=20release=20workflow=20to?= =?UTF-8?q?=20check=20Python=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6f37ff..5532c9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,14 +18,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.10" - - uses: actions/cache@v3 - id: cache - with: - path: ${{ env.pythonLocation }} - key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-publish - name: Install build dependencies - if: steps.cache.outputs.cache-hit != 'true' run: pip install build + - name: check GITHUB_REF matches package version + uses: samuelcolvin/check-python-version@v4.1 + with: + version_file_path: ormdantic/__init__.py - name: Build distribution run: python -m build - name: Publish