From e5087b77886bd3f58b05f5c79f94353958e05d22 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 27 Sep 2024 14:57:29 -0500 Subject: [PATCH 1/4] DOC: Update action commit SHA to the 0.6.0 tag (#94) * For stability provide the commit SHA that corresponds to the 0.6.0 tag for users to pin to. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d22d078..687c1bf 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ jobs: steps: ... - name: Upload wheel - uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0 + uses: scientific-python/upload-nightly-action@ccf29c805b5d0c1dc31fa97fcdb962be074cade3 # 0.6.0 with: artifacts_path: dist anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}} @@ -57,7 +57,7 @@ jobs: steps: ... - name: Upload wheel - uses: scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0 + uses: scientific-python/upload-nightly-action@ccf29c805b5d0c1dc31fa97fcdb962be074cade3 # 0.6.0 with: artifacts_path: dist anaconda_nightly_upload_organization: my-alternative-organization From 40829e937f309c69125c9124119ebfc11560f44f Mon Sep 17 00:00:00 2001 From: Mridul Seth Date: Mon, 30 Sep 2024 17:29:56 +0200 Subject: [PATCH 2/4] FIX: Use $GITHUB_ACTION_PATH to locate pixi.lock for downstream users (#96) * As the GitHub Action is being used in other workflows, it does not know the local file paths and so to have prefix-dev/setup-pixi find the lock file and 'pixi run' know where `upload_wheels.sh` is, the environmental variable 'GITHUB_ACTION_PATH' is used through the '${{ github.action_path }}' context. - c.f. https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index de44a7f..db0f68d 100644 --- a/action.yml +++ b/action.yml @@ -34,6 +34,8 @@ runs: cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} # Avoid post cleanup errors if action run multiple times post-cleanup: false + # Action consumers should load the lock file from the action repo + manifest-path: ${{ github.action_path }}/pixi.toml - name: Upload wheels shell: bash @@ -43,4 +45,4 @@ runs: INPUT_ANACONDA_NIGHTLY_UPLOAD_TOKEN: ${{ inputs.anaconda_nightly_upload_token }} INPUT_ANACONDA_NIGHTLY_UPLOAD_LABELS: ${{ inputs.anaconda_nightly_upload_labels }} run: | - pixi run upload_wheels.sh + pixi run ${{ github.action_path }}/upload_wheels.sh From e079997ef64a1dc0c821dc8ce138678d41862824 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Mon, 30 Sep 2024 10:46:17 -0500 Subject: [PATCH 3/4] MNT: Update project version to v0.6.1 (#97) * Update project version metadata from v0.6.0 to v0.6.1. --- action.yml | 2 +- pixi.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index db0f68d..b0cb066 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ permissions: contents: read metadata: read author: "Scientific-Python" -version: "0.6.0" +version: "0.6.1" inputs: artifacts_path: diff --git a/pixi.toml b/pixi.toml index b056498..2b9e10a 100644 --- a/pixi.toml +++ b/pixi.toml @@ -4,7 +4,7 @@ channels = ["conda-forge"] description = "Environment for the scientific-python/upload-nightly-action GitHub action" name = "upload-nightly-action" platforms = ["linux-64", "osx-64", "osx-arm64"] -version = "0.6.0" +version = "0.6.1" [tasks] From 82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b Mon Sep 17 00:00:00 2001 From: Mridul Seth Date: Mon, 30 Sep 2024 18:03:14 +0200 Subject: [PATCH 4/4] MAINT: Need to be explicit with action path while using pixi run too (#98) * Provide '--manifest-path' option to 'pixi run' to ensure the environment is properly activated. --manifest-path The path to 'pixi.toml' or 'pyproject.toml' --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b0cb066..4b5c381 100644 --- a/action.yml +++ b/action.yml @@ -45,4 +45,4 @@ runs: INPUT_ANACONDA_NIGHTLY_UPLOAD_TOKEN: ${{ inputs.anaconda_nightly_upload_token }} INPUT_ANACONDA_NIGHTLY_UPLOAD_LABELS: ${{ inputs.anaconda_nightly_upload_labels }} run: | - pixi run ${{ github.action_path }}/upload_wheels.sh + pixi run --manifest-path ${{ github.action_path }}/pixi.toml ${{ github.action_path }}/upload_wheels.sh