Skip to content

Commit

Permalink
fix: Update CI workflow to use matrix for environment variable and st…
Browse files Browse the repository at this point in the history
…reamline deployment process
  • Loading branch information
jjjermiah committed Dec 10, 2024
1 parent 09a3944 commit cddbbb4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,11 @@ jobs:
# if pulling to main, deploy to PyPI
if: github.ref == 'refs/heads/main'

env:
PIXI_ENV: "publish"

strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
env: ["publish"]

# Set up operating system
runs-on: ${{ matrix.os }}
Expand All @@ -137,16 +135,15 @@ jobs:
env:
RUNNER_DEBUG: true
with:
environments: ${{ env.PIXI_ENV }}
environments: ${{ matrix.env }}
pixi-version: v0.39.0
cache: true
locked: false
# cache-key: pixi-ENV_${{ env.PIXI_ENV }}-

- name: Print Semver
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pixi run semver
run: pixi run --environment ${{ matrix.env }} semver

- name: Run semantic-release
env:
Expand Down

0 comments on commit cddbbb4

Please sign in to comment.