@@ -25,34 +25,20 @@ jobs:
2525 # Build job
2626 build :
2727 runs-on : ubuntu-latest
28- outputs :
29- should_build : ${{ steps.changes.outputs.should_build }}
3028 steps :
3129 - name : β¬οΈ Checkout
3230 uses : actions/checkout@v4
33- with :
34- fetch-depth : 0 # Need full history for turbo-ignore
35-
36- - name : π Check for documentation changes
37- id : changes
38- run : |
39- npx turbo-ignore docs
40- echo "should_build=$?" >> $GITHUB_OUTPUT
41- continue-on-error : true
4231
43- - name : π¦ Install pnpm
44- if : steps.changes.outputs.should_build == '1'
32+ - name : Install pnpm
4533 uses : pnpm/action-setup@v4
4634
4735 - name : β Setup Node.js
48- if : steps.changes.outputs.should_build == '1'
4936 uses : actions/setup-node@v4
5037 with :
5138 node-version : 20
5239 cache : ' pnpm'
5340
5441 - name : π§ Setup Pages
55- if : steps.changes.outputs.should_build == '1'
5642 uses : actions/configure-pages@v4
5743 with :
5844 # Automatically inject basePath in your Next.js configuration file and disable
@@ -62,30 +48,24 @@ jobs:
6248 static_site_generator : next
6349
6450 - name : π¦ Install dependencies
65- if : steps.changes.outputs.should_build == '1'
6651 run : pnpm install --frozen-lockfile
6752
6853 - name : π Build packages (required for docs)
69- if : steps.changes.outputs.should_build == '1'
7054 run : pnpm turbo run build
7155
7256 - name : π Generate Evolution SDK docs
73- if : steps.changes.outputs.should_build == '1'
7457 run : pnpm turbo run docgen
7558 working-directory : packages/evolution
7659
7760 - name : π Copy Evolution docs to website
78- if : steps.changes.outputs.should_build == '1'
7961 run : node scripts/copy-evolution-docs.mjs
8062 working-directory : docs
8163
8264 - name : π Build documentation with Next.js
83- if : steps.changes.outputs.should_build == '1'
8465 run : pnpm turbo run build
8566 working-directory : docs
8667
8768 - name : π€ Upload artifact
88- if : steps.changes.outputs.should_build == '1'
8969 uses : actions/upload-pages-artifact@v3
9070 with :
9171 path : ./docs/out
9777 url : ${{ steps.deployment.outputs.page_url }}
9878 runs-on : ubuntu-latest
9979 needs : build
100- if : needs.build.outputs.should_build == '1' || github.event_name == 'workflow_dispatch'
10180 steps :
10281 - name : π Deploy to GitHub Pages
10382 id : deployment
0 commit comments