-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (43 loc) · 1.45 KB
/
on-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: On Deployment
on: push
jobs:
wait_for_deploy_complete:
runs-on: ubuntu-latest
outputs:
url: ${{ steps.deployment.outputs.url }}
steps:
- id: deployment
uses: patrickedqvist/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 480
- name: Display deployment URL
run: "echo Preview URL: ${{steps.deployment.outputs.url}}"
check_links:
runs-on: ubuntu-latest
needs: wait_for_deploy_complete
steps:
- uses: actions/[email protected]
- name: Install dependencies
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Run broken-link-checker
if: ${{ success() }}
run: pnpm broken-link-checker ${{needs.wait_for_deploy_complete.outputs.url}}
algolia_crawler:
runs-on: ubuntu-latest
needs: wait_for_deploy_complete
if: github.ref == 'refs/heads/main'
steps:
- name: Algolia crawler creation and crawl
if: ${{ success() }}
uses: algolia/[email protected]
id: algolia_crawler
with:
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
crawler-name: ${{ secrets.CRAWLER_NAME }}
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
site-url: "https://www.inngest.com/docs"