-
Notifications
You must be signed in to change notification settings - Fork 65
89 lines (76 loc) · 2.29 KB
/
ci.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: 18
packageManager: pnpm
- uses: the-guild-org/shared-config/website-cf@main
name: build and deploy website
env:
NEXT_PUBLIC_ALGOLIA_INDEX_NAME: ${{ secrets.NEXT_PUBLIC_ALGOLIA_INDEX_NAME }}
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY: ${{ secrets.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY }}
NEXT_PUBLIC_ALGOLIA_APP_ID: ${{ secrets.NEXT_PUBLIC_ALGOLIA_APP_ID }}
with:
cloudflareApiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflareAccountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: guild-dev-website
prId: ${{ github.event.pull_request.number }}
websiteDirectory: website
buildScript: pnpm build && pnpm export
artifactDir: out
blogsync:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: 18
packageManager: pnpm
- name: sync blog to dev.to
run: 'pnpm sync:blog'
env:
DRY_RUN: ${{ github.ref != 'refs/heads/master' }}
DEV_TO_TOKEN: ${{ secrets.DEV_TO_TOKEN }}
working-directory: packages/blog-sync
prettier:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: 18
packageManager: pnpm
- name: prettier:check
run: 'pnpm prettier:check'
router-typecheck:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- uses: the-guild-org/shared-config/setup@main
name: setup env
with:
nodeVersion: 18
packageManager: pnpm
- name: typecheck
run: pnpm --filter guild-website-router typecheck