Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.1K
Views
How to archive files in artifact for github workflow actions in order to fix this warning?

There are over 10,000 files in this artifact, consider creating an archive before upload to improve the upload performance.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I had this issue deploying a node app to Azure App Services.

I fixed it by adding a zip and an unzip step.

zip step is

  - name: Zip artifact for deployment
    run: zip release.zip ./* -r

unzip step is

  - name: unzip artifact for deployment
    run: unzip release.zip

Add the zip step after the build step and before Upload artifact step like this

  - name: npm install, build, and test
    run: |
      npm install
      npm run build --if-present
      npm run test --if-present

  - name: Zip artifact for deployment
    run: zip release.zip ./* -r

  - name: Upload artifact for deployment job
    uses: actions/upload-artifact@v2
    with:
      name: node-app
      path: release.zip

Then the unzip step is added after the download artifact step and before the deploy step like this.

steps:
  - name: Download artifact from build job
    uses: actions/download-artifact@v2
    with:
      name: node-app
      
  - name: unzip artifact for deployment
    run: unzip release.zip

  - name: 'Deploy to Azure Web App'
    id: deploy-to-webapp
    uses: azure/webapps-deploy@v2
    with:
over 4 years ago · Santiago Trujillo Report

0

I also faced this issue when deploying a react based app to Azure App service.

To add to the answer written by @steve, If the App service instance is windows based, one can use Powershell's Compress-Archive.

In build steps - zipping

Compress-Archive . release.zip

In deploy steps - unzipping

Expand-Archive release.zip

or

unzip release.zip

if the deployment script is using bash

over 4 years ago · Santiago Trujillo Report

0

You can zip all the files using below command and then upload the zip folder as your artifacts.

zip artifact.zip <generated_files>/*
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!