Skip to content

Deploy

Deploy #57

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: ["Code check"]
branches: [main]
types:
- completed
env:
VITE_GITHUB_API_ENDPOINT: https://api.github.com/graphql
# Nx 18 enables using plugins to infer targets by default
# This is disabled for existing workspaces to maintain compatibility
# For more info, see: https://nx.dev/concepts/inferred-tasks
NX_ADD_PLUGINS: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci --prefer-offline
- name: Install and Build 🔧
run: npx nx build main
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: apps/main/dist