Merge pull request #56 from tacerus/readme #132
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: Check npm run build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NEXT_PUBLIC_BASE_PATH: /project-portal | |
steps: | |
- name: Get files | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
- name: Install packages | |
run: npm ci | |
- name: Build project | |
run: npm run build | |
- name: Export static files | |
run: npm run export | |
- name: Add .nojekyll file | |
run: touch ./out/.nojekyll |