Skip to content

Commit 46f2723

Browse files
authored
Merge pull request #2 from avcopan/main
Upload to org channel if running on main branch of main repo
2 parents b7cc074 + 57219af commit 46f2723

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ 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

@@ -19,11 +17,11 @@ jobs:
1917

2018
# Build
2119
- name: Build
22-
run: |
23-
pixi run build
20+
run: pixi run build
2421

2522
# Upload
2623
- name: Upload
24+
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'Auto-Mech/mechtools'}}
2725
run: |
2826
pixi run upload
2927
env:

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)