Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
blanexie authored Apr 28, 2024
1 parent 4882328 commit 65fb9bc
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,13 @@ jobs:
- run: npm run build-only
- name: Compress project into a zip file
run: zip -r dist.zip dist/

# 创建Release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to release
uses: JasonEtco/upload-to-release@master
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
# 上传zip包
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
args: dist.zip application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist.zip
asset_name: qbtui.zip
asset_content_type: application/zip

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}




Expand Down

0 comments on commit 65fb9bc

Please sign in to comment.