mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 03:25:02 +00:00
chore: update upload release
This commit is contained in:
parent
f14296eab5
commit
263df9e284
2 changed files with 12 additions and 10 deletions
11
.github/workflows/macos.yml
vendored
11
.github/workflows/macos.yml
vendored
|
@ -51,6 +51,7 @@ jobs:
|
|||
run: echo ::set-output name=version::${GITHUB_REF##*/}
|
||||
# 打包
|
||||
- name: Package
|
||||
id: package
|
||||
env:
|
||||
ENV_QT_PATH: ${{ env.qt-install-path }}
|
||||
publish_name: ${{ env.target-name }}-${{ env.plantform-des }}-${{ matrix.clang-arch }}-${{ steps.get-version.outputs.version }}
|
||||
|
@ -59,18 +60,18 @@ jobs:
|
|||
ci/mac/package_for_mac.sh
|
||||
mv ci/build/QtScrcpy.app ci/build/${{ env.publish_name }}.app
|
||||
mv ci/build/QtScrcpy.dmg ci/build/${{ env.publish_name }}.dmg
|
||||
echo "::set-env name=artifact-name::${{ env.publish_name }}.app"
|
||||
echo "::set-output name=package-name::${{ env.publish_name }}"
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: ${{ env.artifact-name }}.zip
|
||||
path: ci/build/${{ env.artifact-name }}
|
||||
name: ${{ steps.package.outputs.package-name }}.zip
|
||||
path: ci/build/${{ steps.package.outputs.package-name }}.app
|
||||
# Upload to release
|
||||
- name: Upload Release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ci/build/${{ env.publish_name }}.dmg
|
||||
asset_name: ${{ env.publish_name }}.dmg
|
||||
file: ci/build/${{ steps.package.outputs.package-name }}.dmg
|
||||
asset_name: ${{ steps.package.outputs.package-name }}.dmg
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
11
.github/workflows/windows.yml
vendored
11
.github/workflows/windows.yml
vendored
|
@ -80,6 +80,7 @@ jobs:
|
|||
run: echo ::set-output name=version::${GITHUB_REF##*/}
|
||||
# tag 打包
|
||||
- name: Package
|
||||
id: package
|
||||
env:
|
||||
ENV_QT_PATH: ${{ env.qt-install-path }}
|
||||
publish_name: ${{ env.target-name }}-${{ env.plantform-des }}-${{ matrix.msvc-arch }}-${{ steps.get-version.outputs.version }}
|
||||
|
@ -87,20 +88,20 @@ jobs:
|
|||
cmd.exe /c ci\win\publish_for_win.bat ${{ matrix.msvc-arch }} ..\build\${{ env.publish_name }}
|
||||
# 打包zip
|
||||
Compress-Archive -Path ci\build\${{ env.publish_name }} ci\build\${{ env.publish_name }}.zip
|
||||
echo "::set-env name=artifact-name::${{ env.publish_name }}"
|
||||
echo "::set-output name=package-name::${{ env.publish_name }}"
|
||||
# 上传artifacts
|
||||
# https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: ${{ env.artifact-name }}.zip
|
||||
path: ci\build\${{ env.artifact-name }}
|
||||
name: ${{ steps.package.outputs.package-name }}.zip
|
||||
path: ci\build\${{ steps.package.outputs.package-name }}
|
||||
# Upload to release
|
||||
- name: Upload Release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ci\build\${{ env.publish_name }}.zip
|
||||
asset_name: ${{ env.publish_name }}.zip
|
||||
file: ci\build\${{ steps.package.outputs.package-name }}.zip
|
||||
asset_name: ${{ steps.package.outputs.package-name }}.zip
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
Loading…
Add table
Reference in a new issue