forked from gosling-lang/gosling.js
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 990 Bytes
/
deploy-editor.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
name: Deploy Editor
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
- run: pnpm install
- run: pnpm build-editor
env:
NODE_OPTIONS: '--max_old_space_size=8192'
- name: Deploy editor
run: |
git config --global user.name "[email protected]"
git config --global user.email "GitHub Action"
git remote set-url origin https://${ACCESS_TOKEN}@github.com/${REPO}.git
pnpm run predeploy
pnpm run deploy
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REPO: ${{ github.repository }}