Skip to content

Deploy

Deploy #16631

Workflow file for this run

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'