Skip to content

Commit

Permalink
fix: Update CI workflow to use matrix for Python version and environm…
Browse files Browse the repository at this point in the history
…ent variable in Publish-To-PyPi job
  • Loading branch information
jjjermiah committed Dec 10, 2024
1 parent fdbf92e commit 593cb33
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ jobs:
###############################################################################################
Publish-To-PyPi:
needs: Semantic-Release
env:
PIXI_ENV: "publish"

if: needs.Semantic-Release.outputs.released == 'true'
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
env: ["publish"]

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -179,7 +180,7 @@ jobs:
- name: Install Pixi
uses: prefix-dev/[email protected]
with:
environments: ${{ env.PIXI_ENV }}
environments: ${{ matrix.env }}
pixi-version: v0.39.0
cache: true
locked: false # wont be the same because of the tag
Expand All @@ -190,4 +191,4 @@ jobs:
HATCH_INDEX_AUTH: ${{ secrets.PYPI_API_TOKEN }}
HATCH_INDEX_REPO: https://upload.pypi.org/legacy/
run: |
pixi run publish-pypi
pixi run --environment ${{ matrix.env }} publish-pypi

0 comments on commit 593cb33

Please sign in to comment.