1+ name : " formal-spec-integration"
2+
3+ on :
4+ workflow_run :
5+ workflows : ["formal-spec"]
6+ types :
7+ - completed
8+ branches :
9+ - main
10+
11+ jobs :
12+ integrate-formal-spec :
13+ name : " Integrate Formal Spec"
14+ runs-on : ubuntu-22.04
15+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
16+ steps :
17+ - name : 📥 Checkout Leios site
18+ uses : actions/checkout@v4
19+ with :
20+ repository : input-output-hk/ouroboros-leios
21+ token : ${{ secrets.GH_PAT }}
22+
23+ - name : 📥 Download formal spec HTML
24+ uses : dawidd6/action-download-artifact@v2
25+ with :
26+ workflow : formal-spec.yaml
27+ name : formal-spec-html
28+ repo : input-output-hk/ouroboros-leios-formal-spec
29+ token : ${{ secrets.GH_PAT }}
30+
31+ - name : 🏗️ Setup Node.js
32+ uses : actions/setup-node@v4
33+ with :
34+ node-version : 22
35+ cache : " yarn"
36+ cache-dependency-path : ./site/yarn.lock
37+
38+ - name : 📦 Install dependencies
39+ working-directory : site
40+ run : yarn install
41+
42+ - name : 📝 Update formal spec
43+ run : |
44+ # Create formal spec directory if it doesn't exist
45+ mkdir -p site/static/formal-spec
46+ # Copy the HTML files
47+ cp -r formal-spec-html/* site/static/formal-spec/
48+
49+ - name : 🏗️ Build Docusaurus site
50+ working-directory : site
51+ run : |
52+ yarn build
53+
54+ - name : 🚀 Publish GitHub Pages
55+ uses : peaceiris/actions-gh-pages@v4
56+ with :
57+ github_token : ${{ secrets.GITHUB_TOKEN }}
58+ publish_dir : ./site/build
59+ cname : leios.cardano-scaling.org
0 commit comments