1111 - " .github/workflows/pages.yaml"
1212 workflow_dispatch :
1313
14+ env :
15+ CRAWLER_ID : 7a46f2b7-7169-4936-986d-21391c3134d4
16+
1417permissions :
1518 contents : read
16- pages : write
17- id-token : write
1819
1920concurrency :
2021 group : pages
@@ -24,16 +25,16 @@ jobs:
2425 build :
2526 name : " Build"
2627 runs-on : ubuntu-latest
27- timeout-minutes : 5
28+ timeout-minutes : 10
2829
2930 steps :
3031 - name : " Checkout"
31- uses : actions/checkout@v4
32+ uses : actions/checkout@v5
3233 with :
3334 fetch-depth : 0
3435
3536 - name : " Setup Node 22"
36- uses : actions/setup-node@v4
37+ uses : actions/setup-node@v5
3738 with :
3839 node-version : 22
3940 cache : npm
4546 run : |
4647 npm ci
4748
48- - name : " Build Documentation"
49- run : npm run build
49+ - name : " Run Build"
50+ run : |
51+ npm run build
5052
5153 - name : " Upload Pages Artifact"
5254 uses : actions/upload-pages-artifact@v3
5961 timeout-minutes : 5
6062 needs : build
6163
64+ permissions :
65+ pages : write
66+ id-token : write
67+
6268 environment :
6369 name : github-pages
6470 url : ${{ steps.deployment.outputs.page_url }}
6874 id : deployment
6975 uses : actions/deploy-pages@v4
7076
71- - name : " Send Release Notification"
77+ - name : " Send Deploy Notification"
78+ if : ${{ !cancelled() }}
7279 continue-on-error : true
7380 uses : sarisia/actions-status-discord@v1
7481 with :
7582 webhook : ${{ secrets.DISCORD_WEBHOOK }}
83+
84+ post :
85+ name : " Post-Deploy"
86+ runs-on : ubuntu-latest
87+ timeout-minutes : 5
88+ needs : deploy
89+
90+ steps :
91+ - name : " Algolia Start Crawl"
92+ continue-on-error : true
93+ uses : cssnr/web-request-action@v1
94+ with :
95+ url : https://crawler.algolia.com/api/1/crawlers/${{ env.CRAWLER_ID }}/reindex
96+ username : ${{ secrets.CRAWLER_USER_ID }}
97+ password : ${{ secrets.CRAWLER_API_KEY }}
98+
99+ - name : " Send Post-Deploy Notification"
100+ if : ${{ failure() }}
101+ uses : sarisia/actions-status-discord@v1
102+ with :
103+ webhook : ${{ secrets.DISCORD_WEBHOOK }}
0 commit comments