Skip to content

Commit

Permalink
update seq
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie-zeng committed Nov 22, 2024
1 parent 94beac5 commit c42907b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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:

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit c42907b

Please sign in to comment.