Skip to content

Commit fbfcf59

Browse files
committed
workflow to run in self-hosted runner + container
1 parent 59f4e9f commit fbfcf59

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

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

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,40 @@ concurrency:
3737

3838
jobs:
3939
build-and-deploy:
40-
runs-on: ubuntu-latest
40+
runs-on: self-hosted
41+
container:
42+
image: ubuntu:latest
4143
steps:
4244
- name: Checkout repository
43-
uses: actions/checkout@v4
44-
- uses: actions/setup-node@v4
45+
uses: actions/checkout@v5
46+
- name: setup lsb-release
47+
run: |
48+
apt-get update
49+
aptget install -y lsb-release
50+
- name: Setup Python
51+
uses: actions/setup-python@v6
52+
with:
53+
python-version: '3.14'
54+
cache: 'pip'
55+
- name: "Python requirements.txt"
56+
run: |
57+
if [ -f requirements.txt ]; then
58+
pip install -r requirements.txt
59+
fi
60+
- name: Setup nodejs
61+
uses: actions/setup-node@v5
4562
with:
4663
node-version: 24
4764
- 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"
65+
run: |
66+
npm install -g mystmd
5167
- name: Build HTML Assets
5268
# run: (cd notebooks; myst build --execute --html)
5369
run: export PYTHONPATH=$(pwd)/modules; myst build --execute --html
5470
- name: Setup Pages
55-
uses: actions/configure-pages@v3
71+
uses: actions/configure-pages@v5
5672
- name: Upload artifact
57-
uses: actions/upload-pages-artifact@v3
73+
uses: actions/upload-pages-artifact@v4
5874
with:
5975
path: './notebooks/_build/html'
6076
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)