Skip to content

add workflow for deploying #7

add workflow for deploying

add workflow for deploying #7

Workflow file for this run

name: Update Deployment
on:
push:
branches:
- "*"
jobs:
publish:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: cd client && npm install
- name: Remove build directory from .gitignore
run: sed -i '/build/d' .gitignore
- name: Generate your content
run: npm run build:client
- name: Publish current workdir (which contains generated content) to GitHub Pages
uses: rayluo/[email protected]
with:
source-directory: client
target-branch: gh-pages