-
-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (54 loc) · 1.68 KB
/
release.yml
File metadata and controls
68 lines (54 loc) · 1.68 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
name: Release
on:
push:
branches:
- 'next'
- 'main'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
# Create a release pull request on the main branch
release:
if: github.ref == 'refs/heads/main'
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-pnpm
- name: Create Release Pull Request
uses: changesets/action@v1
with:
createGithubReleases: ${{ github.ref == 'refs/heads/main' }}
publish: pnpm changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy-docs:
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/docs'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-pnpm
- name: Build docs
run: pnpm --filter docs build
- name: Deploy docs
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: cm1coipco000087g1pcgohgtd
run: pnpm --dir apps/docs deploy:fleek
deploy-registry:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-pnpm
- name: Build registry
run: pnpm --filter @geist/registry build
- name: Deploy registry
env:
FLEEK_TOKEN: ${{ secrets.FLEEK_TOKEN }}
FLEEK_PROJECT_ID: cm2lvm8yh000030bm17kmomq9
run: pnpm --dir apps/registry deploy:fleek