Skip to content

Commit 4f2e9f6

Browse files
authored
Merge pull request #2021 from p-zach/set-up-myst
Set up MyST site deploy
2 parents 82fcedf + 4d9b307 commit 4f2e9f6

File tree

14 files changed

+1310
-8
lines changed

14 files changed

+1310
-8
lines changed

.github/workflows/build-linux.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Linux CI
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '**.md'
7+
- '**.ipynb'
8+
- 'myst.yml'
49

510
# Every time you make a push to your PR, it cancel immediately the previous checks,
611
# and start a new one. The other runner will be available more quickly to your PR.

.github/workflows/build-macos.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: macOS CI
22

3-
on: [pull_request]
4-
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '**.md'
7+
- '**.ipynb'
8+
- 'myst.yml'
59
# Every time you make a push to your PR, it cancel immediately the previous checks,
610
# and start a new one. The other runner will be available more quickly to your PR.
711
concurrency:

.github/workflows/build-python.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Python CI
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '**.md'
7+
- '**.ipynb'
8+
- 'myst.yml'
49

510
# Every time you make a push to your PR, it cancel immediately the previous checks,
611
# and start a new one. The other runner will be available more quickly to your PR.

.github/workflows/build-special.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Special Cases CI
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '**.md'
7+
- '**.ipynb'
8+
- 'myst.yml'
49

510
# Every time you make a push to your PR, it cancel immediately the previous checks,
611
# and start a new one. The other runner will be available more quickly to your PR.

.github/workflows/build-windows.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Windows CI
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '**.md'
7+
- '**.ipynb'
8+
- 'myst.yml'
49

510
# Every time you make a push to your PR, it cancel immediately the previous checks,
611
# and start a new one. The other runner will be available more quickly to your PR.

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This file was initialized with `myst init --gh-pages`
2+
3+
name: MyST GitHub Pages Deploy
4+
on:
5+
push:
6+
# Runs on pushes targeting the develop branch
7+
branches: [develop]
8+
# Only trigger redeploy if Markdown files, notebooks, or config changes
9+
paths:
10+
- '**.md'
11+
- '**.ipynb'
12+
- 'myst.yml'
13+
env:
14+
# `BASE_URL` determines the website is served from, including CSS & JS assets
15+
# You may need to change this to `BASE_URL: ''`
16+
BASE_URL: /${{ github.event.repository.name }}
17+
18+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
19+
permissions:
20+
contents: read
21+
pages: write
22+
id-token: write
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: 'pages'
27+
cancel-in-progress: false
28+
jobs:
29+
deploy:
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v3
38+
- uses: actions/setup-node@v4
39+
with:
40+
node-version: 18.x
41+
- name: Install MyST Markdown
42+
run: npm install -g mystmd
43+
- name: Build HTML Assets
44+
run: myst build --html
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: './_build/html'
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.github/workflows/trigger-packaging.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- develop
7+
paths-ignore:
8+
- '**.md'
9+
- '**.ipynb'
10+
- 'myst.yml'
711
jobs:
812
trigger-package-build:
913
runs-on: ubuntu-latest

.github/workflows/trigger-python.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- develop
7+
paths-ignore:
8+
- '**.md'
9+
- '**.ipynb'
10+
- 'myst.yml'
711
jobs:
812
triggerPython:
913
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ xcode/
2020
/Dockerfile
2121
/python/gtsam/notebooks/.ipynb_checkpoints/ellipses-checkpoint.ipynb
2222
.cache/
23+
24+
# MyST build outputs
25+
_build

INSTALL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Quickstart
1+
# Installation Guide
2+
3+
## Quickstart
24

35
In the root library folder execute:
46

0 commit comments

Comments
 (0)