@@ -162,30 +162,6 @@ jobs:
162
162
steps :
163
163
- run : ${{ contains(needs.*.result, 'failure') && 'false' || 'true' }}
164
164
165
- publish-schemas :
166
- needs : document
167
- if : ${{ github.repository == 'amaranth-lang/amaranth' }}
168
- runs-on : ubuntu-latest
169
- steps :
170
- - name : Check out source code
171
- uses : actions/checkout@v4
172
- with :
173
- fetch-depth : 0
174
- - name : Download schema archive
175
- uses : actions/download-artifact@v4
176
- with :
177
- name : schema
178
- path : schema/
179
- - name : Publish development schemas
180
- if : ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
181
- uses : JamesIves/github-pages-deploy-action@releases/v4
182
- with :
183
- repository-name : amaranth-lang/amaranth-lang.github.io
184
- ssh-key : ${{ secrets.PAGES_DEPLOY_KEY }}
185
- branch : main
186
- folder : schema/
187
- target-folder : schema/amaranth/
188
-
189
165
publish-docs :
190
166
needs : document
191
167
if : ${{ github.repository == 'amaranth-lang/amaranth' }}
@@ -242,6 +218,30 @@ jobs:
242
218
folder : pages/
243
219
clean : false
244
220
221
+ publish-schemas :
222
+ needs : [required, publish-docs] # avoid race condition with publish-docs
223
+ if : ${{ github.repository == 'amaranth-lang/amaranth' }}
224
+ runs-on : ubuntu-latest
225
+ steps :
226
+ - name : Check out source code
227
+ uses : actions/checkout@v4
228
+ with :
229
+ fetch-depth : 0
230
+ - name : Download schema archive
231
+ uses : actions/download-artifact@v4
232
+ with :
233
+ name : schema
234
+ path : schema/
235
+ - name : Publish schemas
236
+ if : ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/main' }}
237
+ uses : JamesIves/github-pages-deploy-action@releases/v4
238
+ with :
239
+ repository-name : amaranth-lang/amaranth-lang.github.io
240
+ ssh-key : ${{ secrets.PAGES_DEPLOY_KEY }}
241
+ branch : main
242
+ folder : schema/
243
+ target-folder : schema/amaranth/
244
+
245
245
publish-package :
246
246
needs : required
247
247
runs-on : ubuntu-latest
0 commit comments