Skip to content

Commit d13b137

Browse files
committed
Add GitHub Actions workflow to build MESS-Static
1 parent e5c54c5 commit d13b137

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/static-build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build and Upload MESS-Static
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout the code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Pixi
16+
uses: prefix-dev/[email protected]
17+
with:
18+
manifest-path: static/pixi.toml
19+
20+
# Build
21+
- name: Build
22+
run: pixi build
23+
working-directory: static/
24+
25+
# Upload
26+
- name: Upload
27+
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'Auto-Mech/mechtools'}}
28+
run: pixi run upload
29+
env:
30+
ANACONDA_API_KEY: ${{ secrets.ANACONDA_API_KEY }}

0 commit comments

Comments
 (0)