Skip to content

Commit 9815279

Browse files
committed
try workaround
1 parent be9a2e4 commit 9815279

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,16 @@ jobs:
5353
run: |
5454
npm install -g mystmd thebe-core thebe thebe-lite
5555
56-
- name: Build HTML
56+
- 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'
5766
working-directory: ./lectures
5867
run: |
5968
myst build --html
@@ -172,4 +181,4 @@ jobs:
172181
});
173182
174183
console.log('Comment posted successfully');
175-
timeout-minutes: 10
184+
timeout-minutes: 10

0 commit comments

Comments
 (0)