Streamline steps and add build zip in GitHub Workflow
Keep Running / Build (push) Successful in 36s
Details
Keep Running / Build (push) Successful in 36s
Details
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.
This commit is contained in:
parent
e50fb62be8
commit
abf9d267fe
|
@ -7,13 +7,18 @@ jobs:
|
||||||
Build:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
- run: npm ci
|
uses: actions/checkout@v4
|
||||||
- run: npm run build
|
- name: Install dependencies
|
||||||
- uses: vimtor/action-zip@v1.1
|
run: npm ci
|
||||||
|
- name: Building project
|
||||||
|
run: npm run build
|
||||||
|
- name: Creating archive
|
||||||
|
uses: vimtor/action-zip@v1.1
|
||||||
with:
|
with:
|
||||||
files: out/
|
files: out/
|
||||||
desk: build.zip
|
desc: build.zip
|
||||||
- uses: actions/upload-artifact@v3
|
- name: Uploading archive
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: build.zip
|
path: build.zip
|
||||||
|
|
Loading…
Reference in New Issue