-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 981 Bytes
/
client.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
name: Deploy Client
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy Client
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
cache-dependency-path: "packages/client/yarn.lock"
- name: Install dependencies
run: |
cd packages/client
yarn install --frozen-lockfile
- name: Build
run: |
cd packages/client
yarn run build
env:
VITE_TWITTER_SERVERLESS_API: ${{secrets.VITE_TWITTER_SERVERLESS_API}}
VITE_ENCLAVE_API: ${{secrets.VITE_ENCLAVE_API}}
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: packages/client/dist # The folder the action should deploy.