Skip to content

Commit

Permalink
ci: install Python on release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Sep 7, 2024
1 parent 6e97542 commit 7d20864
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types: [published]
workflow_dispatch:

env:
PYTHON_VERSION: '3.12'

jobs:
set-version:
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -141,6 +144,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Download updated pyproject.toml
uses: actions/download-artifact@v4
with:
Expand All @@ -166,6 +174,11 @@ jobs:
steps:
- uses: actions/download-artifact@v4

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
Expand Down

0 comments on commit 7d20864

Please sign in to comment.