Skip to content

Web Preview

Web Preview #1

Workflow file for this run

name: Web Preview
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Repository Checkout
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- name: Cache node_modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Netlify
run: npm install netlify-cli@latest -g
- name: Install Dependencies
run: npm ci
- name: Build project
run: nx run gongmuin-client:build
- name: Deploy to Netlify
id: netlify_deploy
run: |
netlify deploy \
--dir dist \
--site ${{ secrets.NETLIFY_SITE_ID_GONGMUIN_WEB }} \
--auth ${{ secrets.NETLIFY_TOKEN }}