From abf9d267feb033f3969d6b4ffe16b76c2c22f96d Mon Sep 17 00:00:00 2001 From: Ian Wijma Date: Sun, 19 Nov 2023 15:53:23 +1100 Subject: [PATCH] Streamline steps and add build zip in GitHub Workflow Streamlined the steps in the GitHub Actions workflow and added a zipping process using 'action-zip' to create 'build.zip'. This change optimizes the workflow runtime and ensures a more efficient archiving and retrieval of the built files in the 'out' directory, improving the workflow's overall performance. --- .github/workflows/build.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5e11076..5e894cc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,13 +7,18 @@ jobs: Build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - run: npm ci - - run: npm run build - - uses: vimtor/action-zip@v1.1 + - name: Checkout + uses: actions/checkout@v4 + - name: Install dependencies + run: npm ci + - name: Building project + run: npm run build + - name: Creating archive + uses: vimtor/action-zip@v1.1 with: files: out/ - desk: build.zip - - uses: actions/upload-artifact@v3 + desc: build.zip + - name: Uploading archive + uses: actions/upload-artifact@v3 with: path: build.zip