-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (57 loc) · 1.59 KB
/
main.yml
File metadata and controls
70 lines (57 loc) · 1.59 KB
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
68
69
70
name: ci
on:
push:
branches:
- main
concurrency:
group: ci-main
cancel-in-progress: false
jobs:
code-style:
uses: ./.github/workflows/lint.yml
typescript:
uses: ./.github/workflows/typescript-typecheck.yml
check-seo:
uses: ./.github/workflows/check-meta-tags.yml
test:
uses: ./.github/workflows/test.yml
e2e:
uses: ./.github/workflows/e2e.yml
search-api:
runs-on: ubuntu-24.04
timeout-minutes: 10
environment:
name: production
steps:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: setup bun
uses: oven-sh/setup-bun@v2
- name: install dependencies
run: bun install --frozen-lockfile
- name: deploy search api to cloudflare workers
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
packageManager: bun
workingDirectory: packages/search-api
command: deploy
website:
uses: ./.github/workflows/website.yml
with:
environment: production
secrets: inherit
storybook:
uses: ./.github/workflows/storybook.yml
with:
environment: storybook
secrets: inherit
# release:
# uses: the-guild-org/shared-config/.github/workflows/release.yml@main
# with:
# buildScript: build
# packageManager: bun
# secrets:
# githubToken: ${{ secrets.GITHUB_TOKEN }}
# npmToken: ${{ secrets.NPM_TOKEN }}