Skip to content

Commit

Permalink
create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
webloopbox authored Oct 10, 2024
1 parent e5ec3ca commit 23ab390
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy Website to GitHub Pages

on:
push:
branches:
- v5/build-next-proj
paths:
- "reactgrid/**"
- "website/**"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
run: |
git clone ${{ github.repository_url }} .
git checkout ${{ github.sha }}
- name: Setup Node.js
run: |
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
- name: Install dependencies for the whole workspace
run: |
npm install
- name: Build all packages (reactgrid and website)
run: |
npm run build --workspaces
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install -g gh-pages
gh-pages -d website/out -b gh-pages

0 comments on commit 23ab390

Please sign in to comment.