Deploy #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
workflow_run: | |
workflows: ["Code check"] | |
branches: [main] | |
types: | |
- completed | |
env: | |
VITE_GITHUB_API_ENDPOINT: https://api.github.com/graphql | |
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 |