fix: assets prefix #49
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 Static Site | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 # Use setup-node to specify Node.js version | |
with: | |
node-version: "18" # Specify Node.js version 30 (or the latest available) | |
- name: Install Packages | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: true | |
- name: Build | |
run: pnpm run build | |
- name: Create .nojekyll | |
run: touch ./out/.nojekyll | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages # The branch to deploy to (change this to your desired branch) | |
folder: ./out # The output directory of the static export |