File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build website using results from gh-pages
2
+
3
+ on :
4
+ # TODO: Figure out how to run this workflow when only the web files are modified
5
+ workflow_dispatch :
6
+
7
+ permissions :
8
+ actions : write
9
+ contents : write
10
+
11
+ jobs :
12
+ refresh-website :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Download results to web/src/data
19
+ run : |
20
+ curl https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/adtests.json
21
+ curl https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/manifest.json
22
+ curl https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/model_definitions.json
23
+ working-directory : web/src/data
24
+
25
+ # This isn't needed to build the website, it's just there so that the
26
+ # JSON is easily accessible on the gh-pages branch
27
+ - name : Copy results to web/public
28
+ run : |
29
+ cp ../src/data/*.json .
30
+ working-directory : web/public
31
+
32
+ - name : Set up pnpm
33
+ uses : pnpm/action-setup@v4
34
+ with :
35
+ version : 10
36
+
37
+ - name : Install dependencies
38
+ run : pnpm install
39
+ working-directory : web
40
+
41
+ - name : Build website
42
+ run : pnpm build --base /ADTests
43
+ working-directory : web
44
+
45
+ - name : Upload results
46
+ uses : peaceiris/actions-gh-pages@v4
47
+ with :
48
+ github_token : ${{ secrets.GITHUB_TOKEN }}
49
+ publish_dir : ./web/dist
50
+ destination_dir : ' '
You can’t perform that action at this time.
0 commit comments