Comments (4)
I think there are a few issues here.
- Usually the build directory is either
.next/
if usingnext build
orout
if usingnext build && next export
, so updating the publish-dir to one of those directories should get you closer to a solution. - If you're planning on using a Next.js server runtime—which is the former of the build commands above—you'll need to have the Netlify + Next.js plugin
Having said that, I tried using this Github action to produce the Next.js runtime and it doesn't seem to be respecting it. Not sure if there is an option to include the build flag as a part of the process.
The equivalent command using Netlify Actions would be deploy --build
.
from actions-netlify.
Could you show me the source?
from actions-netlify.
That is my full .yml file
name: ci
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository!
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ^14.19.1
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run Jest tests
run: yarn test
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
publish-dir: './public'
production-branch: main
production-deploy: true
timeout-minutes: 2
from actions-netlify.
Thanks. The yaml doesn't seem to contain a build process. You need yarn build
or something.
from actions-netlify.
Related Issues (20)
- output deploy id
- Invalid action input 'enable-github-deployment' HOT 6
- Release HOT 2
- Error: Unprocessable Entity HOT 2
- Update node version to 20 HOT 1
- Page Not Found for Remix + Vite App HOT 1
- No such file or directory when deploying HOT 3
- Netlify preview build not using netlify.toml HOT 2
- netlify-config-path not working for me HOT 1
- Production deployment not working HOT 1
- How to delete deploy preview on PR merge? HOT 4
- Critical security issue with preview deployments HOT 5
- Netlify Large Media? HOT 1
- Upload crashes when using TS files in the 'functions' folder HOT 2
- Deprecation warning for Node 12 HOT 7
- (More) deprecation warning for Node 12 HOT 2
- ✨ add input to enable/disable github deployment
- Post 2 comments for two separate builds HOT 1
- Support for edge-functions HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-netlify.