@@ -17,11 +17,11 @@ jobs:
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- name : Checkout repo
20
- uses : actions/checkout@v2
20
+ uses : actions/checkout@v4
21
21
with :
22
22
submodules : " recursive"
23
23
- name : Setup Node.js
24
- uses : actions/setup-node@v3
24
+ uses : actions/setup-node@v4
25
25
with :
26
26
node-version : 16
27
27
- name : Setup Bikeshed
35
35
- name : Run Bikeshed
36
36
run : cd document/core && make bikeshed
37
37
- name : Upload artifact
38
- uses : actions/upload-artifact@v2
38
+ uses : actions/upload-artifact@v4
39
39
with :
40
40
name : core-rendered
41
41
path : document/core/_build/html
@@ -44,13 +44,13 @@ jobs:
44
44
runs-on : ubuntu-latest
45
45
steps :
46
46
- name : Checkout repo
47
- uses : actions/checkout@v2
47
+ uses : actions/checkout@v4
48
48
- name : Setup Bikeshed
49
49
run : pip install bikeshed && bikeshed update
50
50
- name : Run Bikeshed
51
51
run : bikeshed spec "document/js-api/index.bs" "document/js-api/index.html"
52
52
- name : Upload artifact
53
- uses : actions/upload-artifact@v2
53
+ uses : actions/upload-artifact@v4
54
54
with :
55
55
name : js-api-rendered
56
56
path : document/js-api/index.html
@@ -59,43 +59,59 @@ jobs:
59
59
runs-on : ubuntu-latest
60
60
steps :
61
61
- name : Checkout repo
62
- uses : actions/checkout@v2
62
+ uses : actions/checkout@v4
63
63
- name : Setup Bikeshed
64
64
run : pip install bikeshed && bikeshed update
65
65
- name : Run Bikeshed
66
66
run : bikeshed spec "document/web-api/index.bs" "document/web-api/index.html"
67
67
- name : Upload artifact
68
- uses : actions/upload-artifact@v2
68
+ uses : actions/upload-artifact@v4
69
69
with :
70
70
name : web-api-rendered
71
71
path : document/web-api/index.html
72
72
73
+ build-spec-versions :
74
+ runs-on : ubuntu-latest
75
+ steps :
76
+ - name : Checkout repo
77
+ uses : actions/checkout@v4
78
+ - name : Upload artifacts
79
+ uses : actions/upload-artifact@v4
80
+ with :
81
+ name : versions-rendered
82
+ path : document/versions/
83
+
73
84
publish-spec :
74
85
runs-on : ubuntu-latest
75
- needs : [build-core-spec, build-js-api-spec, build-web-api-spec]
86
+ needs : [build-core-spec, build-js-api-spec, build-web-api-spec, build-spec-versions ]
76
87
steps :
77
88
- name : Checkout repo
78
- uses : actions/checkout@v2
89
+ uses : actions/checkout@v4
79
90
- name : Create output directory
80
91
run : mkdir _output && cp document/index.html _output/index.html
81
92
- name : Download core spec artifact
82
- uses : actions/download-artifact@v2
93
+ uses : actions/download-artifact@v4
83
94
with :
84
95
name : core-rendered
85
96
path : _output/core
86
97
- name : Download JS API spec artifact
87
- uses : actions/download-artifact@v2
98
+ uses : actions/download-artifact@v4
88
99
with :
89
100
name : js-api-rendered
90
101
path : _output/js-api
91
102
- name : Download Web API spec artifact
92
- uses : actions/download-artifact@v2
103
+ uses : actions/download-artifact@v4
93
104
with :
94
105
name : web-api-rendered
95
106
path : _output/web-api
107
+ - name : Download spec versions artifacts
108
+ uses : actions/download-artifact@v4
109
+ with :
110
+ name : versions-rendered
111
+ path : _output/versions
96
112
- name : Publish to GitHub Pages
97
113
if : github.ref == 'refs/heads/main'
98
- uses : peaceiris/actions-gh-pages@v3
114
+ uses : peaceiris/actions-gh-pages@v4
99
115
with :
100
116
publish_dir : ./_output
101
117
github_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments