File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 1111 - " package*.json"
1212
1313env :
14- CRAWLER_ID : " 740ca24d-65fd-4f25-b397-16ebcec2f7fd"
14+ crawler-id : " 740ca24d-65fd-4f25-b397-16ebcec2f7fd"
15+ purge-domain : " "
1516
1617concurrency :
1718 group : pages
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
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
You can’t perform that action at this time.
0 commit comments