Skip to content

Commit 5e820e0

Browse files
committed
Add #nodeploy
1 parent 7c0e615 commit 5e820e0

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/pages.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
- "package*.json"
1212

1313
env:
14-
CRAWLER_ID: "740ca24d-65fd-4f25-b397-16ebcec2f7fd"
14+
crawler-id: "740ca24d-65fd-4f25-b397-16ebcec2f7fd"
15+
purge-domain: ""
1516

1617
concurrency:
1718
group: pages
@@ -23,6 +24,8 @@ jobs:
2324
runs-on: ubuntu-latest
2425
timeout-minutes: 10
2526

27+
if: ${{ !contains(github.event.head_commit.message, '#nodeploy') }}
28+
2629
steps:
2730
- name: "Checkout"
2831
uses: actions/checkout@v5
@@ -56,6 +59,12 @@ jobs:
5659
with:
5760
path: .vitepress/dist
5861

62+
- name: "Send Failure Notification"
63+
if: ${{ failure() }}
64+
uses: sarisia/actions-status-discord@v1
65+
with:
66+
webhook: ${{ secrets.DISCORD_WEBHOOK }}
67+
5968
deploy:
6069
name: "Deploy"
6170
runs-on: ubuntu-latest
@@ -90,11 +99,18 @@ jobs:
9099
needs: deploy
91100

92101
steps:
102+
- name: "Purge Cache"
103+
if: ${{ env.purge-domain != '' }}
104+
uses: cssnr/cloudflare-purge-cache-action@v2
105+
with:
106+
zones: ${{ env.purge-domain }}
107+
token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
108+
93109
- name: "Algolia Crawler"
94-
if: ${{ env.CRAWLER_ID != '' }}
110+
if: ${{ env.crawler-id != '' }}
95111
uses: cssnr/algolia-crawler-action@v1
96112
with:
97-
crawler_id: ${{ env.CRAWLER_ID }}
113+
crawler_id: ${{ env.crawler-id }}
98114
crawler_user_id: ${{ secrets.CRAWLER_USER_ID }}
99115
crawler_api_key: ${{ secrets.CRAWLER_API_KEY }}
100116

0 commit comments

Comments
 (0)