build err fix #15
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 Next.js app | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: pnpm/[email protected] | |
with: | |
version: 6.0.2 | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.8.x | |
- name: Install NPM packages | |
run: pnpm i | |
- name: Build Next.js app | |
run: pnpm run build | |
env: | |
URL_PREFIX: transformat | |
- name: Export Next.js app | |
run: pnpm run export | |
- name: add nojekyll | |
run: touch ./out/.nojekyll | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./out |