|
9 | 9 | # Documentation |
10 | 10 | # Doc - CI workflow |
11 | 11 | - ".github/workflows/documentation.yaml" |
| 12 | + - ".github/workflows/rw_docusaurus_operations.yaml" |
12 | 13 | - "scripts/ci/**documentation**.sh" |
13 | 14 | # Doc - Font-End config |
14 | 15 | - "docs/package.json" |
@@ -90,61 +91,43 @@ jobs: |
90 | 91 | echo "should_deploy=false" >> $GITHUB_OUTPUT |
91 | 92 | fi |
92 | 93 |
|
93 | | - deploy_documentation: |
94 | | - runs-on: ubuntu-latest |
95 | | - # Run based on the check_docs_changes job output (which handles both push and workflow_run events) |
| 94 | + build_documentation: |
| 95 | + name: Build Documentation |
96 | 96 | if: needs.check_docs_changes.outputs.should_deploy == 'true' |
97 | 97 | needs: [check_docs_changes] |
98 | | - steps: |
99 | | - - name: Checkout |
100 | | - uses: actions/checkout@v5 |
101 | | - with: |
102 | | - fetch-depth: 0 |
103 | | - |
104 | | - # Setup pnpm first |
105 | | - - name: Install pnpm |
106 | | - uses: pnpm/action-setup@v4 |
107 | | - with: |
108 | | - version: 10 |
109 | | - run_install: false |
110 | | - |
111 | | - # Then setup Node.js with pnpm cache |
112 | | - - name: Setup Node.js |
113 | | - uses: actions/setup-node@v6 |
114 | | - with: |
115 | | - node-version: '22' |
116 | | - cache: 'pnpm' |
117 | | - cache-dependency-path: docs/pnpm-lock.yaml |
| 98 | + uses: ./.github/workflows/rw_docusaurus_operations.yaml |
| 99 | + with: |
| 100 | + operation: build |
| 101 | + node-version: '22' |
| 102 | + working-directory: docs |
| 103 | + upload-artifacts: true |
118 | 104 |
|
119 | | - - name: Cache Docusaurus build |
120 | | - uses: actions/cache@v4 |
| 105 | + deploy_to_github_pages: |
| 106 | + name: Deploy to GitHub Pages |
| 107 | + runs-on: ubuntu-latest |
| 108 | + if: needs.check_docs_changes.outputs.should_deploy == 'true' |
| 109 | + needs: [check_docs_changes, build_documentation] |
| 110 | + steps: |
| 111 | + - name: Download build artifacts |
| 112 | + uses: actions/download-artifact@v6 |
121 | 113 | with: |
122 | | - path: | |
123 | | - docs/.docusaurus |
124 | | - docs/node_modules/.cache |
125 | | - key: ${{ runner.os }}-docusaurus-${{ hashFiles('docs/pnpm-lock.yaml') }} |
126 | | - restore-keys: | |
127 | | - ${{ runner.os }}-docusaurus- |
128 | | -
|
129 | | - - name: Install dependencies |
130 | | - working-directory: docs |
131 | | - run: pnpm install --no-frozen-lockfile |
132 | | - |
133 | | - - name: Build website |
134 | | - working-directory: docs |
135 | | - run: pnpm build |
| 114 | + name: documentation-build |
| 115 | + path: ./docs/build |
136 | 116 |
|
137 | | - # Setup Pages |
138 | 117 | - name: Setup Pages |
139 | 118 | uses: actions/configure-pages@v5 |
140 | 119 |
|
141 | | - # Upload artifact |
142 | | - - name: Upload artifact |
| 120 | + - name: Upload Pages artifact |
143 | 121 | uses: actions/upload-pages-artifact@v4 |
144 | 122 | with: |
145 | 123 | path: ./docs/build |
146 | 124 |
|
147 | | - # Deploy to GitHub Pages |
148 | 125 | - name: Deploy to GitHub Pages |
149 | 126 | id: deployment |
150 | 127 | uses: actions/deploy-pages@v4 |
| 128 | + |
| 129 | + - name: Deployment summary |
| 130 | + run: | |
| 131 | + echo "## 📚 Documentation Deployment" >> $GITHUB_STEP_SUMMARY |
| 132 | + echo "✅ Successfully deployed to GitHub Pages" >> $GITHUB_STEP_SUMMARY |
| 133 | + echo "🔗 **URL**: ${{ steps.deployment.outputs.page_url }}" >> $GITHUB_STEP_SUMMARY |
0 commit comments