Merge pull request #272 from KGQA/xixi019-patch-1 #84
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 to GitHub Pages | |
on: | |
push: | |
branches: [v2.0, master] | |
pull_request: | |
branches: [v2.0, master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" # specify the Node.js version you want | |
- name: Build site # If your site requires a build step, include it here | |
run: | | |
cd frontend | |
npm install | |
npm run build | |
env: | |
CI: true | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./frontend/build | |
publish_branch: pages |