We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
name: Deploy to GitHub Pages on: push: branches: - main jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Set up Node.js uses: actions/setup-node@v2 with: node-version: '16' - name: Install dependencies run: pnpm install - name: Build project env: NEXT_PUBLIC_BASE_PATH: "/your-repo-name" NEXT_PUBLIC_PAGE_EXTENSIONS: "js,jsx,ts,tsx,md,mdx" NEXT_PUBLIC_OUTPUT: "export" NEXT_PUBLIC_TS_IGNORE_BUILD_ERRORS: "true" NEXT_PUBLIC_ESLINT_IGNORE_DURING_BUILDS: "true" NEXT_PUBLIC_REACT_STRICT_MODE: "true" run: pnpm build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./out
The text was updated successfully, but these errors were encountered:
✨ feat: add/ config CI.CD for publising on Github Pages #5
83035ea
pnguyen215
No branches or pull requests
How to Deploy Next.js Apps to Github Pages
The text was updated successfully, but these errors were encountered: