diff --git a/.github/workflows/test_and_deploy.yaml b/.github/workflows/test_and_deploy.yaml index 042cf53..cdf5ab3 100644 --- a/.github/workflows/test_and_deploy.yaml +++ b/.github/workflows/test_and_deploy.yaml @@ -28,7 +28,7 @@ jobs: fetch-tags: true - name: Setup pixi - uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6 + uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0 with: manifest-path: pyproject.toml # Workaround: Dynamic versioning (versioningit) causes lock file version mismatch. @@ -70,7 +70,7 @@ jobs: fetch-tags: true - name: Setup pixi - uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6 + uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0 with: manifest-path: pyproject.toml # Workaround: Dynamic versioning (versioningit) causes lock file version mismatch. @@ -87,8 +87,6 @@ jobs: - name: Build conda package run: | pixi run conda-build - mkdir -p /tmp/local-channel/linux-64 - cp *.conda /tmp/local-channel/linux-64 # pkg-verify requires a conda env that already has the package # installed (and micromamba on PATH); pkg-install sets both up. @@ -97,7 +95,7 @@ jobs: uses: neutrons/conda-actions/pkg-install@bba9ca89d48d9ae846db9650cc63fde736340b3d # v2 with: package-name: ${{ env.PKG_NAME }} - local-channel: /tmp/local-channel + local-channel: ./local-channel - name: Verify conda package uses: neutrons/conda-actions/pkg-verify@bba9ca89d48d9ae846db9650cc63fde736340b3d # v2 @@ -132,7 +130,7 @@ jobs: fetch-tags: true - name: Setup Pixi - uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6 + uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0 with: manifest-path: pyproject.toml # Workaround: Dynamic versioning (versioningit) causes lock file version mismatch. @@ -180,7 +178,7 @@ jobs: fetch-tags: true - name: Setup pixi - uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6 + uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0 with: manifest-path: pyproject.toml # Workaround: Dynamic versioning (versioningit) causes lock file version mismatch. diff --git a/pyproject.toml b/pyproject.toml index 7c2156e..6b3dd19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -204,7 +204,7 @@ pypi-publish = { cmd = "twine upload dist/*", description = "Publish the package pypi-publish-test = { cmd = "twine upload --repository testpypi dist/*", description = "Publish the package to TestPyPI", depends-on = [ "pypi-build", ] } -conda-build-command = { cmd = "pixi build", description = "Build the conda package command" } +conda-build-command = { cmd = "pixi publish --target-channel ./local-channel", description = "Build the conda package command" } conda-build = { description = "Build the conda package", depends-on = [ "backup-toml", "sync-version",