-
Notifications
You must be signed in to change notification settings - Fork 29
41 lines (40 loc) · 995 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
name: Deploy
on:
push:
branches:
- main
schedule:
- cron: '0 * * * *'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# Install dependencies
- name: Install dependencies
run: npm ci
# Lint
- name: Lint
run: npm run lint
# Build frontend
- name: Build
run: npm run build
env:
GITHUB_TOKEN: ${{ github.token }}
# Deploy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
cname: gravity-ui.com
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'