Skip to content

Commit 2e434e5

Browse files
authored
Merge pull request #1 from avcopan/main
Configure conda package upload
2 parents b7cc074 + e3d687d commit 2e434e5

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
1211
steps:
13-
# Repository
1412
- name: Checkout the code
1513
uses: actions/checkout@v4
1614

1715
- name: Set up Pixi
1816
uses: prefix-dev/setup-pixi@v0.8.9
1917

20-
# Build
2118
- name: Build
22-
run: |
23-
pixi run build
19+
run: pixi run build
2420

21+
upload:
22+
runs-on: ubuntu-latest
23+
needs: build
24+
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'Auto-Mech/mechtools'}}
25+
steps:
2526
# Upload
2627
- name: Upload
2728
run: |

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ build-pac99 = "cd PAC99 && pixi build"
1010
build-thermp = "cd ThermP && pixi build"
1111
build-projrot = "cd ProjRot && pixi build"
1212
build = { depends-on = ["build-pac99", "build-thermp", "build-projrot"] }
13-
upload = "pixi run rattler-build upload anaconda -o avcopan */*.conda"
13+
upload = "pixi run rattler-build upload anaconda -o Auto-Mech */*.conda"
1414

1515
[dependencies]
1616
rattler-build = ">=0.47.0,<0.48"

0 commit comments

Comments
 (0)