website changes #22
Workflow file for this run
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
name: Deploy Website to GitHub Pages | |
on: | |
push: | |
branches: | |
- v5/build-next-proj | |
paths: | |
- "reactgrid/**" | |
- "website/**" | |
permissions: | |
id-token: write | |
pages: write | |
jobs: | |
# Build job | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install dependencies for the whole workspace | |
run: | | |
npm install | |
- name: Build all packages (reactgrid and website) | |
env: | |
NEXT_PUBLIC_BASE_PATH: "/reactgrid" | |
run: | | |
npm run build --workspaces | |
- name: Upload build artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: website/out | |
# Deployment job | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |