mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-09-03 08:10:23 +00:00
chore: update windows.yml
This commit is contained in:
parent
2c4a37d4c0
commit
d4c7279fbf
1 changed files with 11 additions and 9 deletions
20
.github/workflows/windows.yml
vendored
20
.github/workflows/windows.yml
vendored
|
@ -87,18 +87,20 @@ jobs:
|
||||||
cmd.exe /c ci\win\publish_for_win.bat ${{ matrix.msvc-arch }} ..\build\${{ env.publish_dir }}
|
cmd.exe /c ci\win\publish_for_win.bat ${{ matrix.msvc-arch }} ..\build\${{ env.publish_dir }}
|
||||||
# 打包zip
|
# 打包zip
|
||||||
Compress-Archive -Path ci\build\${{ env.publish_dir }} ci\build\${{ env.publish_dir }}.zip
|
Compress-Archive -Path ci\build\${{ env.publish_dir }} ci\build\${{ env.publish_dir }}.zip
|
||||||
|
echo "::set-env name=artifact-name::${{ env.publish_dir }}"
|
||||||
# 上传artifacts
|
# 上传artifacts
|
||||||
# https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts
|
# https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ env.publish_dir }}-artifact
|
name: ${{ env.artifact-name }}
|
||||||
path: ci\build\${{ env.publish_dir }}
|
path: ci\build\${{ env.artifact-name }}
|
||||||
# 上传release
|
# Upload to release
|
||||||
# https://github.com/softprops/action-gh-release
|
- name: Upload Release
|
||||||
- name: Release
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
uses: svenstaro/upload-release-action@v1-release
|
||||||
with:
|
with:
|
||||||
files: ci/build/${{ env.publish_dir }}.zip
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
env:
|
file: ci\build\${{ env.publish_dir }}.zip
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
asset_name: ${{ env.publish_dir }}.zip
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
overwrite: true
|
Loading…
Add table
Add a link
Reference in a new issue