Skip to content

Commit

Permalink
🔨 Update release workflow to check Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
yezz123 committed Jan 2, 2024
1 parent cb2640f commit c2e68fe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
version_file_path: ormdantic/__init__.py
- name: Build distribution
run: python -m build
- name: Publish
Expand Down

0 comments on commit c2e68fe

Please sign in to comment.