-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update CI workflow to use matrix for Python version and environm…
…ent variable in Publish-To-PyPi job
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 |