We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be9a2e4 commit 9815279Copy full SHA for 9815279
.github/workflows/ci.yml
@@ -53,7 +53,16 @@ jobs:
53
run: |
54
npm install -g mystmd thebe-core thebe thebe-lite
55
56
- - name: Build HTML
+ - name: Build HTML for GitHub Pages
57
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
58
+ working-directory: ./lectures
59
+ run: |
60
+ myst build --html
61
+ env:
62
+ BASE_URL: /${{ github.event.repository.name }}
63
+
64
+ - name: Build HTML for PR Preview
65
+ if: github.event_name == 'pull_request'
66
working-directory: ./lectures
67
68
myst build --html
@@ -172,4 +181,4 @@ jobs:
172
181
});
173
182
174
183
console.log('Comment posted successfully');
175
- timeout-minutes: 10
184
+ timeout-minutes: 10
0 commit comments