-
Notifications
You must be signed in to change notification settings - Fork 218
67 lines (56 loc) · 1.76 KB
/
deploy.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: 🚚 Deploy
on:
push:
branches:
- master
env:
NODE_OPTIONS: "--max_old_space_size=8192"
jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Tools & Dependencies
uses: ./.github/actions/install
- name: Build
working-directory: ./app
run: pnpm run build
env:
TALLY_API_KEY: ${{ secrets.TALLY_API_KEY }}
- name: Cloudflare Pages Upload
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ens-docs
branch: master
directory: app/out
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'
- name: Edgeserver Upload
uses: lvkdotsh/[email protected]
with:
app_id: "207908995888658940"
server: https://api.edgeserver.io
token: ${{ secrets.EDGESERVER_TOKEN }}
directory: app/out
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
working-directory: app/scripts
shell: bash
- name: Build search.json
run: bun run build-search
working-directory: app/scripts
shell: bash
- name: Index search.json
shell: bash
run: |
curl --silent -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${{secrets.SEARCH_TOKEN}}" -d @app/out/search.json https://search.v3x.systems/indexes/ens-docs/documents?primaryKey=id