Skip to content

Commit 0e95f11

Browse files
committed
Update Workflows
1 parent ce861eb commit 0e95f11

File tree

4 files changed

+48
-16
lines changed

4 files changed

+48
-16
lines changed

.github/workflows/lint.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@ 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
2626

2727
- name: "Install"
28-
id: install
2928
run: |
3029
npm ci
3130
31+
- name: "Build"
32+
if: ${{ !cancelled() }}
33+
run: |
34+
npm run build
35+
3236
#- name: "ESLint"
3337
# if: ${{ !cancelled() }}
3438
# run: |

.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: 740ca24d-65fd-4f25-b397-16ebcec2f7fd
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 }}

docs/guides/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
prev:
33
text: 'Clients'
4-
link: '/clients'
4+
link: '/clients/'
55
---
66

77
# Getting Started

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ hero:
1717
link: /guides/features
1818
theme: brand
1919
- text: Clients
20-
link: /clients
20+
link: /clients/
2121
theme: alt
2222
- text: Documentation
23-
link: /docs
23+
link: /docs/
2424
theme: alt
2525

2626
features:
@@ -32,10 +32,10 @@ features:
3232
link: /guides/features
3333
- title: Clients
3434
details: Get Upload Clients for All Platforms
35-
link: /clients
35+
link: /clients/
3636
- title: Documentation
3737
details: Review Features and Options
38-
link: /docs
38+
link: /docs/
3939
- title: Open Source
4040
details: View Source Code on GitHub
4141
link: https://github.com/django-files/django-files

0 commit comments

Comments
 (0)