Skip to content

Commit

Permalink
add workflow for deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
aashutoshrathi committed Aug 1, 2024
1 parent 580ebb6 commit f71471e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

with:
source-directory: .
target-branch: gh-pages

0 comments on commit f71471e

Please sign in to comment.