Skip to content

Deploy

Deploy #55

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@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Reusable Action for PNPM and NX
uses: dipiash/pnpm-nx-reusable-action@v8
- name: Install and Build 🔧
run: npx nx build main
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: apps/main/dist