You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "Workflow run conclusion: ${{ github.event.workflow_run.conclusion }}"
290
+
echo "Workflow run name: ${{ github.event.workflow_run.name }}"
291
+
echo "Workflow run ID: ${{ github.event.workflow_run.id }}"
292
+
echo "Ref: ${{ github.ref }}"
293
+
294
+
- name: 🛠️ Setup Node.js
295
+
uses: actions/setup-node@v4
296
+
with:
297
+
node-version: 22
298
+
cache: "yarn"
299
+
cache-dependency-path: ./site/yarn.lock
300
+
301
+
- name: 📦 Install dependencies
302
+
working-directory: site
303
+
run: yarn install
304
+
305
+
# Download formal spec HTML specifically from the workflow run
306
+
- name: 📥 Download formal spec HTML
307
+
uses: actions/download-artifact@v4
308
+
continue-on-error: true
309
+
with:
310
+
name: formal-spec-html
311
+
run-id: ${{ github.event.workflow_run.id }}
312
+
path: formal-spec-html
313
+
314
+
- name: 📝 Update formal spec
315
+
run: |
316
+
# Create formal spec directory if it doesn't exist
317
+
mkdir -p site/static/formal-spec
318
+
319
+
# Check if we have files to copy
320
+
if [ -z "$(ls -A formal-spec-html/ 2>/dev/null)" ]; then
321
+
echo "No formal spec HTML files found - using placeholder"
322
+
echo "<html><body><h1>Formal Specification</h1><p>Formal specification documentation is being updated. Please check back later.</p></body></html>" > site/static/formal-spec/index.html
323
+
else
324
+
# Copy the HTML files
325
+
cp -r formal-spec-html/* site/static/formal-spec/
326
+
fi
327
+
328
+
- name: 🔄 Enhance Agda documentation
329
+
working-directory: site
330
+
run: |
331
+
# Process HTML files using the agda-web-docs-lib only if there are actual HTML files
0 commit comments