Skip to content

.github/workflows/server_deployment.yml #3

.github/workflows/server_deployment.yml

.github/workflows/server_deployment.yml #3

on:
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout code
uses: actions/checkout@v4
- name: 🏗️ Set up Node.js v18.20.4
uses: actions/setup-node@v4
with:
node-version: 18.20.4
- name: 🛠️ Install and Build
run: |
npm ci
npm run build
- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages