-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5ec3ca
commit 23ab390
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |