fix(cd): replace github upload action

This commit is contained in:
hexxa 2021-11-07 16:30:13 +08:00 committed by Hexxa
parent 769ddb078a
commit 9a526736bb

View file

@ -30,9 +30,21 @@ jobs:
- name: Build - name: Build
run: | run: |
yarn build yarn build
- name: Upload the artifacts - name: Upload artifacts
uses: skx/github-action-publish-binaries@master uses: xresloader/upload-to-github-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
args: 'dist/*' file: "dist/*"
tags: true
draft: false
overwrite: true
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "dist/*"
file_glob: true
tag: ${{ github.ref }}
overwrite: true
body: "This is my release text"