From f71471e014ff50ed57433da6e8900487c08d794c Mon Sep 17 00:00:00 2001 From: Aashutosh Rathi Date: Thu, 1 Aug 2024 12:57:16 +0530 Subject: [PATCH] add workflow for deploying --- .github/workflows/pages.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..6dba027 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,33 @@ +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: Generate your content + run: npm run build:client + + - name: Publish current workdir (which contains generated content) to GitHub Pages + uses: rayluo/github-pages-overwriter@v1.3 + + with: + source-directory: . + target-branch: gh-pages