Skip to content

Commit 9f3bf29

Browse files
committed
Publish websites from PR to a subdirectory
1 parent 266d7ab commit 9f3bf29

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/generate_website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ jobs:
8686
8787
collect-results:
8888
runs-on: ubuntu-latest
89-
if: github.event_name != 'pull_request'
9089
needs: [setup-keys, run-models]
9190

9291
steps:
@@ -106,3 +105,4 @@ jobs:
106105
with:
107106
github_token: ${{ secrets.GITHUB_TOKEN }}
108107
publish_dir: ./html
108+
destination_dir: ${{ github.event_name == 'pull_request' && 'pr' || '' }}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ You can edit it there.
2121

2222
Note that the links-to-existing-GitHub-issues in the table are also defined in this script.
2323

24+
## I want to see the HTML generated by a PR!
25+
26+
The latest workflow run across all PRs will be published to https://turinglang.org/ADTests/pr.
27+
28+
This is a bit messy, but works for now on the assumption that there aren't many PRs being worked on simultaneously.
29+
2430
## What's going on?
2531

2632
The workflow is the most complicated part of this repository.

0 commit comments

Comments
 (0)