I have a Next.js application at hand. In the process of setting GitHub Action’s CI/CD to automatically deploy to Azure Web App, it took a lot of time to upload node_modules
folder in CI’s actions/upload-artifact@v2
step The file in is really inefficient. Therefore, I changed to compress the entire directory before uploading. As a result, the overall CI/CD time was directly reduced from 26m 34s
to 8m 58s
, and the deployment efficiency was greatly improved. In today’s article, I will talk about my writing method.
… continue reading …
This article is transferred from https://blog.miniasp.com/post/2023/03/25/Improve-GitHub-Actions-workflow-by-archive-files-before-upload-artifact
This site is only for collection, and the copyright belongs to the original author.