Skip to content

Commit e30aa1e

Browse files
committed
Update Workflows
1 parent 09271c9 commit e30aa1e

File tree

2 files changed

+38
-10
lines changed

2 files changed

+38
-10
lines changed

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- name: "Checkout"
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020

2121
- name: "Setup Node 22"
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@v5
2323
with:
2424
node-version: 22
2525
#cache: npm

.github/workflows/pages.yaml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ on:
1111
- ".github/workflows/pages.yaml"
1212
workflow_dispatch:
1313

14+
env:
15+
CRAWLER_ID: 7a46f2b7-7169-4936-986d-21391c3134d4
16+
1417
permissions:
1518
contents: read
16-
pages: write
17-
id-token: write
1819

1920
concurrency:
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
@@ -45,8 +46,9 @@ jobs:
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
@@ -59,6 +61,10 @@ jobs:
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 }}
@@ -68,8 +74,30 @@ jobs:
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

Comments
 (0)