From c42907b0c59063a922e51eb1fe80b3c4a61edfc5 Mon Sep 17 00:00:00 2001 From: frankie zeng Date: Fri, 22 Nov 2024 09:34:17 +0800 Subject: [PATCH] update seq --- .github/workflows/release.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1812eb..bbb8d51 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,9 @@ name: Build - -on: +on: push: tags: - - 'v*' + - 'v*' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -41,11 +40,6 @@ jobs: run: npm run api - name: Build APP run: npm run build:win - - name: Upload artifact - env: - ALIYUN_ACCESS_KEY_ID: ${{ secrets.ALIYUN_ACCESS_KEY_ID }} - ALIYUN_ACCESS_KEY_SECRET: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }} - run: node tools/upload.js --note --app - name: Create Release id: create_release uses: actions/create-release@v1 @@ -57,12 +51,12 @@ jobs: draft: false prerelease: false - name: Upload Release Asset - id: upload-release-asset + id: upload-release-asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: ./dist/EcuBus-Pro ${{ env.VERSION }}.exe asset_name: EcuBus-Pro ${{ env.VERSION }}.exe asset_content_type: application/vnd.microsoft.portable-executable @@ -77,3 +71,8 @@ jobs: with: artifacts: Portable EcuBus-Pro ${{ env.VERSION }}.zip token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload to aliyun + env: + ALIYUN_ACCESS_KEY_ID: ${{ secrets.ALIYUN_ACCESS_KEY_ID }} + ALIYUN_ACCESS_KEY_SECRET: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }} + run: node tools/upload.js --note --app