Skip to content
New issue

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

Nuxt 3, dist folder not created with github actions. #6534

Open
pochat opened this issue Apr 27, 2024 · 0 comments
Open

Nuxt 3, dist folder not created with github actions. #6534

pochat opened this issue Apr 27, 2024 · 0 comments
Labels
type: bug code to address defects in shipped code

Comments

@pochat
Copy link

pochat commented Apr 27, 2024

Describe the bug

Hi all,

I hope are well.

Nuxt 3 does not create the dist folder when using GitHub actions. I followed the boilerplate in this link. https://github.com/marketplace/actions/netlify-actions Still, the dist folder is not created after numerous attempts.

Sitename: https://csci-e-114-final-project-pochat.netlify.app/
Repo: https://github.com/cscie114/csci-e-114-final-project-pochat

image

Error:

Deploy path: /home/runner/work/csci-e-114-final-project-pochat/csci-e-114-final-project-pochat/dist
 ›   Error: The deploy directory "/home/runner/work/csci-e-114-final-project-pochat/csci-e-114-final-project-pochat/dist" has not been found. Did you forget to run 'netlify build'?
Error: Process completed with exit code 1.

My yml file:

name: Deploy to Netlify

on:
  push:
    branches: [ main ]

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Use Node.js 16
        uses: actions/setup-node@v4
        with:
          node-version: 18.0.0

      - name: Clean 
        run: npm ci 

      - name: Install dependencies
        run: npm install

      - name: Build Nuxt app
        run: npm run build

      - name: Linked Deploy to Netlify
        env:
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
        timeout-minutes: 1

        run: netlify deploy --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} --prod

Any help is appreciated.

Steps to reproduce

  1. Open my repo: https://github.com/cscie114/csci-e-114-final-project-pochat
  2. Do a commit to trigger the yml file with github actions
  3. Read the results on the github actions website

Configuration

No response

Environment

System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M1
Memory: 58.94 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.0.0 - ~/.nvm/versions/node/v22.0.0/bin/node
npm: 10.6.0 - ~/.nvm/versions/node/v22.0.0/bin/npm

@pochat pochat added the type: bug code to address defects in shipped code label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant