From da16b9af5cef7e1262e0f52f5509a39f95631f3e Mon Sep 17 00:00:00 2001 From: Jozen Date: Thu, 16 May 2024 17:57:57 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecc8d41..a370ac9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,11 +2,11 @@ name: Build on: push: tags: - - '*' + - "*" branches: - main pull_request: - branches: [ "main" ] + branches: ["main"] workflow_dispatch: jobs: @@ -14,21 +14,22 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Build - run: | - chmod +x dist.sh - ./dist.sh + - name: Build + run: | + chmod +x dist.sh + chmod +x build.sh + ./dist.sh - - uses: actions/upload-artifact@v4 - with: - name: zoom-platform - path: zoom-platform.sh + - uses: actions/upload-artifact@v4 + with: + name: zoom-platform + path: zoom-platform.sh - - name: Release if tag - if: github.ref_type == 'tag' - uses: ncipollo/release-action@v1 - with: - artifacts: "zoom-platform.sh" - allowUpdates: true + - name: Release if tag + if: github.ref_type == 'tag' + uses: ncipollo/release-action@v1 + with: + artifacts: "zoom-platform.sh" + allowUpdates: true