CI: Update asset zip path, close #351

This commit is contained in:
genteure 2022-07-07 21:44:07 +08:00
parent 901b2bde9e
commit fc56b38a94

View File

@ -110,12 +110,13 @@ jobs:
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: CLI-${{ matrix.rid }}-${{ matrix.build_configuration }} name: CLI-${{ matrix.rid }}-${{ matrix.build_configuration }}
path: BililiveRecorder.Cli/publish/${{ matrix.rid }} path: BililiveRecorder.Cli/publish/${{ matrix.rid }}/Release
- name: Pack Release Asset - name: Pack Release Asset
run: | run: |
cd BililiveRecorder.Cli/publish mkdir /brecAsset
zip -r CLI-${{ matrix.rid }}-${{ matrix.build_configuration }}.zip ./${{ matrix.rid }} cd BililiveRecorder.Cli/publish/${{ matrix.rid }}/Release
zip -r /brecAsset/CLI-${{ matrix.rid }}-${{ matrix.build_configuration }}.zip .
- name: Upload Release Asset - name: Upload Release Asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
@ -123,7 +124,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ github.event.release.upload_url }} upload_url: ${{ github.event.release.upload_url }}
asset_path: BililiveRecorder.Cli/publish/CLI-${{ matrix.rid }}-${{ matrix.build_configuration }}.zip asset_path: /brecAsset/CLI-${{ matrix.rid }}-${{ matrix.build_configuration }}.zip
asset_name: BililiveRecorder-CLI-${{ matrix.rid }}.zip asset_name: BililiveRecorder-CLI-${{ matrix.rid }}.zip
asset_content_type: application/zip asset_content_type: application/zip