File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed
Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ jobs:
1515 - name : Checkout
1616 uses : actions/checkout@v6
1717
18- - name : Set up Pixi
18+ - name : Install pixi
19+ shell : bash
1920 run : |
2021 curl -fsSL https://pixi.sh/install.sh | bash
21- echo 'export PATH="$HOME/.pixi/bin:$PATH"' >> $GITHUB_ENV
22+ echo "$HOME/.pixi/bin" >> "$GITHUB_PATH"
23+ "$HOME/.pixi/bin/pixi" --version
2224
2325 - name : Publish package (dry run)
2426 uses : ./publish
4042 - name : Checkout
4143 uses : actions/checkout@v6
4244
43- - name : Setup pixi
44- uses : prefix-dev/setup-pixi@v0.9.4
45+ - name : Install pixi
46+ shell : bash
47+ run : |
48+ curl -fsSL https://pixi.sh/install.sh | bash
49+ echo "$HOME/.pixi/bin" >> "$GITHUB_PATH"
50+ "$HOME/.pixi/bin/pixi" --version
4551
4652 - name : Publish package (dry run, force)
4753 uses : ./publish
Original file line number Diff line number Diff line change @@ -46,21 +46,21 @@ runs:
4646 shell : bash
4747 run : |
4848 if command -v anaconda &>/dev/null; then
49- echo "'anaconda' command is available. Using it for upload."
50- echo "CMD=anaconda" >> $GITHUB_OUTPUT
49+ echo "'anaconda' command is available. Using it for upload."
50+ echo "CMD=anaconda" >> $GITHUB_OUTPUT
5151 elif pixi run anaconda --version &>/dev/null; then
52- echo "anaconda command is available via pixi. Using 'pixi run anaconda' for upload."
52+ echo "anaconda command is available via pixi. Using 'pixi run anaconda' for upload."
5353 echo "CMD=pixi run anaconda" >> $GITHUB_OUTPUT
5454 else
5555 echo "Checking for 'pixi' command..."
5656 if command -v pixi &>/dev/null; then
57- echo "'pixi' command is available but 'anaconda' is not found. Installing anaconda-client..."
58- pixi global install anaconda-client
59- echo "Using 'pixi run anaconda' for upload after installation."
57+ echo "'pixi' command is available but 'anaconda' is not found. Installing anaconda-client..."
58+ pixi global install anaconda-client
59+ echo "Using 'pixi run anaconda' for upload after installation."
6060 echo "CMD=pixi run anaconda" >> $GITHUB_OUTPUT
6161 else
62- echo "Neither 'anaconda' command nor 'pixi' is available. Please ensure that anaconda-client is installed and available in PATH or via pixi."
63- exit 1
62+ echo "Neither 'anaconda' command nor 'pixi' is available. Please ensure that anaconda-client is installed and available in PATH or via pixi."
63+ exit 1
6464 fi
6565 fi
6666
You can’t perform that action at this time.
0 commit comments