-
Notifications
You must be signed in to change notification settings - Fork 34
45 lines (37 loc) · 991 Bytes
/
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
name: Deploy
# on:
# push:
# tags:
# - '@caravan/coordinator**'
# branches:
# - main
on: [push, pull_request]
permissions:
contents: write
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
env:
GITHUB_PAGES: true
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install
# the deploy action can't find the build directory if it's in the
# sub directory of the monorepo, even if we reference it correctly
# so we have to copy it to the root of the repo.
- name: Build
run: |
echo ${{ env.GITHUB_PAGES }}
npx turbo run build --force
cp -R apps/coordinator/build .
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages