Skip to content

Commit 760d12d

Browse files
committed
gh action uses self-hosted runner with pixi
1 parent 59f4e9f commit 760d12d

File tree

3 files changed

+2865
-9
lines changed

3 files changed

+2865
-9
lines changed

.github/workflows/myst-to-pages.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,36 @@ concurrency:
3737

3838
jobs:
3939
build-and-deploy:
40-
runs-on: ubuntu-latest
40+
runs-on: self-hosted
4141
steps:
4242
- name: Checkout repository
4343
uses: actions/checkout@v4
44-
- uses: actions/setup-node@v4
4544
with:
46-
node-version: 24
45+
clean: true
46+
- name: Clean up previous pixi installation
47+
run: |
48+
rm -rf /containers/github-actions/.pixi || true
49+
- name: Setup pixi
50+
uses: prefix-dev/setup-pixi@v0.8.1
51+
with:
52+
pixi-version: latest
53+
cache: true
54+
- name: Setup dependencies
55+
run: |
56+
pixi install
4757
- name: Install MyST Markdown
48-
run: npm install -g mystmd
49-
- name: Install requirements.txt
50-
run: "if [ -f requirements.txt ]; then pip install -r requirements.txt; fi"
58+
run: |
59+
pixi run npm install -g mystmd
5160
- name: Build HTML Assets
52-
# run: (cd notebooks; myst build --execute --html)
53-
run: export PYTHONPATH=$(pwd)/modules; myst build --execute --html
61+
run: |
62+
export PYTHONPATH=$(pwd)/modules
63+
pixi run build-docs
5464
- name: Setup Pages
5565
uses: actions/configure-pages@v3
5666
- name: Upload artifact
5767
uses: actions/upload-pages-artifact@v3
5868
with:
59-
path: './notebooks/_build/html'
69+
path: './_build/html'
6070
- name: Deploy to GitHub Pages
6171
id: deployment
6272
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)