Nuxt/Gitlab: WARNING: public: no matching files ERROR: No files to upload

I am trying to deploy my Nuxt.js/Vuetify app on Gitlab. My app works well on my local machine.
Here is my .gitlab-ci.yml file as suggested by the Nuxt.js official documentation:

image: node

  - npm install

    - node_modules/

    - npm run generate
      - public
    - master

Here is the content of my nuxt.config.js file:

module.exports = {
    ** Headers of the page
    head: {
	title: 'fending4',
	meta: [
	    { charset: 'utf-8' },
	    { name: 'viewport', content: 'width=device-width, initial-scale=1' },
	    { hid: 'description', name: 'description', content: 'Nuxt.js project' }
	link: [
	    { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
	    { rel: 'stylesheet', type: 'text/css', href: ',300,400,500,700,900|Material+Icons'}

    ** Customize the progress bar color
    loading: { color: '#3B8070' },
    ** Build configuration
    build: {
	** Run ESLint on save
	extend (config, { isDev, isClient }) {
	    if (isDev && isClient) {
		    test: /\.(js|vue)$/,
		    enforce: 'pre',
		    loader: 'eslint-loader',
		    exclude: /(node_modules)/
		    test: /\.css$/,
		    loader: ['css-loader', 'stylus-loader'],
		    exclude: /(node_modules)/
    maxChunkSize: 400000,
    performance: {
     	hints: false

Error message

I am getting this error message:

2018-09-12T10:33:22.028Z nuxt: Call generate:distRemoved hooks (1)
2018-09-12T10:33:22.028Z nuxt:generate Destination folder cleaned
2018-09-12T10:33:22.034Z nuxt: Call generate:distCopied hooks (1)
2018-09-12T10:33:22.034Z nuxt:generate Static & build files copied
2018-09-12T10:33:22.037Z nuxt:render Rendering url /
2018-09-12T10:33:24.320Z nuxt: Call generate:page hooks (1)
2018-09-12T10:33:24.321Z nuxt:generate Generate file: /index.html
2018-09-12T10:33:24.324Z nuxt:render Rendering url /
2018-09-12T10:33:24.325Z nuxt: Call generate:done hooks (1)
2018-09-12T10:33:24.326Z nuxt:generate HTML Files generated in 24.5s
2018-09-12T10:33:24.326Z nuxt:generate Generate done
Creating cache default...
node_modules/: found 22322 matching files          
Uploading to 
Created cache
Uploading artifacts...
WARNING: public: no matching files                 
ERROR: No files to upload                          
Job succeeded


enter image description here

Any hints?

Billal Begueradj

Hi Billal,

I don’t know about your specific script. But the last part of your log is a known issue. Would you like to get it fixed soon?

If so, vote (give a thumb-up) for both and, please.

1 Like