-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 Upload the build beta package to aliyun OSS
- Loading branch information
1 parent
78c7b3f
commit 1f802a9
Showing
1 changed file
with
88 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,86 +160,96 @@ jobs: | |
- name: Conveyor build Windows app | ||
uses: hydraulic-software/conveyor/actions/[email protected] | ||
with: | ||
command: make windows-app --output-dir=./output/clipevery-windows-${{ env.PACKAGE_VERSION }} | ||
command: make windows-zip --output-dir=./output/clipevery-windows-${{ env.PACKAGE_VERSION }} | ||
extra_flags: -f ci.conveyor.conf | ||
signing_key: ${{ secrets.SIGNING_KEY }} | ||
agree_to_license: 1 | ||
|
||
- name: Upload Windows app | ||
uses: actions/upload-artifact@v4 | ||
- name: Upload to oss | ||
id: upload_to_oss | ||
uses: JohnGuan/oss-upload-action@main | ||
with: | ||
name: clipevery-windows-${{ env.PACKAGE_VERSION }} | ||
path: output/clipevery-windows-${{ env.PACKAGE_VERSION }} | ||
if-no-files-found: error | ||
|
||
- name: Conveyor build Mac amd64 app | ||
uses: hydraulic-software/conveyor/actions/[email protected] | ||
with: | ||
command: make mac-app --output-dir=./output/clipevery-mac-adm64-${{ env.PACKAGE_VERSION }} | ||
extra_flags: -f ci.conveyor.conf -Kapp.machines=mac.amd64 | ||
signing_key: ${{ secrets.SIGNING_KEY }} | ||
agree_to_license: 1 | ||
|
||
# Preserve the file permissions of Clipevery.app | ||
# directly use upload-artifact to compress zip and lose file permissions | ||
# https://github.com/actions/upload-artifact?tab=readme-ov-file#permission-loss | ||
- name: Tar Mac amd64 app | ||
run: tar -cvf Clipevery.tar -C output/clipevery-mac-adm64-${{ env.PACKAGE_VERSION }} Clipevery.app | ||
|
||
- name: Upload Mac amd64 app | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: clipevery-mac-amd64-${{ env.PACKAGE_VERSION }} | ||
path: output/clipevery-mac-adm64-${{ env.PACKAGE_VERSION }}/Clipevery.tar | ||
if-no-files-found: error | ||
|
||
- name: Conveyor build Mac aarch64 app | ||
uses: hydraulic-software/conveyor/actions/[email protected] | ||
with: | ||
command: make mac-app --output-dir=./output/clipevery-mac-aarch64-${{ env.PACKAGE_VERSION }} | ||
extra_flags: -f ci.conveyor.conf -Kapp.machines=mac.aarch64 | ||
signing_key: ${{ secrets.SIGNING_KEY }} | ||
agree_to_license: 1 | ||
|
||
- name: Tar Mac aarch64 app | ||
run: tar -cvf Clipevery.tar -C output/clipevery-mac-aarch64-${{ env.PACKAGE_VERSION }} Clipevery.app | ||
|
||
- name: Upload Mac aarch64 app | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: clipevery-mac-aarch64-${{ env.PACKAGE_VERSION }} | ||
path: output/clipevery-mac-aarch64-${{ env.PACKAGE_VERSION }}/Clipevery.tar | ||
if-no-files-found: error | ||
|
||
- name: Conveyor build Linux app | ||
uses: hydraulic-software/conveyor/actions/[email protected] | ||
with: | ||
command: make debian-package --output-dir=./output/clipevery-linux-${{ env.PACKAGE_VERSION }} | ||
extra_flags: -f ci.conveyor.conf | ||
signing_key: ${{ secrets.SIGNING_KEY }} | ||
agree_to_license: 1 | ||
|
||
- name: Upload Linux app | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: clipevery-linux-${{ env.PACKAGE_VERSION }} | ||
path: output/clipevery-linux-${{ env.PACKAGE_VERSION }}/*.deb | ||
if-no-files-found: error | ||
|
||
# conveyor default cache directory is .conveyor/cache | ||
# Avoid caching it, causing Github space payment | ||
- name: Cleanup Conveyor | ||
if: always() | ||
run: | | ||
rm -f developerID_application.p12 | ||
rm -rf .conveyor/cache/* | ||
- name: Display file tree with sizes | ||
run: | | ||
echo "Displaying the size of files and directories in 'output' directory:" | ||
du -ah output | sort -rh | ||
# delete output directory to free up space, Github Action only has 14G space, | ||
# to avoid the failure of insufficient space in the subsequent post recycling steps | ||
- name: Delete output directory | ||
run: rm -rf output | ||
key-id: ${{ secrets.ALIYUN_ACCESSKEY_ID }} | ||
key-secret: ${{ secrets.ALIYUN_ACCESSKEY_SECRET }} | ||
region: oss-cn-shenzhen | ||
bucket: clipevery-desktop | ||
assets: output/clipevery-windows-${{ env.PACKAGE_VERSION }}/**:/{{ env.PACKAGE_VERSION }}/ | ||
|
||
# - name: Upload Windows app | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: clipevery-windows-${{ env.PACKAGE_VERSION }} | ||
# path: output/clipevery-windows-${{ env.PACKAGE_VERSION }} | ||
# if-no-files-found: error | ||
# | ||
# - name: Conveyor build Mac amd64 app | ||
# uses: hydraulic-software/conveyor/actions/[email protected] | ||
# with: | ||
# command: make mac-app --output-dir=./output/clipevery-mac-adm64-${{ env.PACKAGE_VERSION }} | ||
# extra_flags: -f ci.conveyor.conf -Kapp.machines=mac.amd64 | ||
# signing_key: ${{ secrets.SIGNING_KEY }} | ||
# agree_to_license: 1 | ||
# | ||
# # Preserve the file permissions of Clipevery.app | ||
# # directly use upload-artifact to compress zip and lose file permissions | ||
# # https://github.com/actions/upload-artifact?tab=readme-ov-file#permission-loss | ||
# - name: Tar Mac amd64 app | ||
# run: tar -cvf Clipevery.tar -C output/clipevery-mac-adm64-${{ env.PACKAGE_VERSION }} Clipevery.app | ||
# | ||
# - name: Upload Mac amd64 app | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: clipevery-mac-amd64-${{ env.PACKAGE_VERSION }} | ||
# path: output/clipevery-mac-adm64-${{ env.PACKAGE_VERSION }}/Clipevery.tar | ||
# if-no-files-found: error | ||
# | ||
# - name: Conveyor build Mac aarch64 app | ||
# uses: hydraulic-software/conveyor/actions/[email protected] | ||
# with: | ||
# command: make mac-app --output-dir=./output/clipevery-mac-aarch64-${{ env.PACKAGE_VERSION }} | ||
# extra_flags: -f ci.conveyor.conf -Kapp.machines=mac.aarch64 | ||
# signing_key: ${{ secrets.SIGNING_KEY }} | ||
# agree_to_license: 1 | ||
# | ||
# - name: Tar Mac aarch64 app | ||
# run: tar -cvf Clipevery.tar -C output/clipevery-mac-aarch64-${{ env.PACKAGE_VERSION }} Clipevery.app | ||
# | ||
# - name: Upload Mac aarch64 app | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: clipevery-mac-aarch64-${{ env.PACKAGE_VERSION }} | ||
# path: output/clipevery-mac-aarch64-${{ env.PACKAGE_VERSION }}/Clipevery.tar | ||
# if-no-files-found: error | ||
# | ||
# - name: Conveyor build Linux app | ||
# uses: hydraulic-software/conveyor/actions/[email protected] | ||
# with: | ||
# command: make debian-package --output-dir=./output/clipevery-linux-${{ env.PACKAGE_VERSION }} | ||
# extra_flags: -f ci.conveyor.conf | ||
# signing_key: ${{ secrets.SIGNING_KEY }} | ||
# agree_to_license: 1 | ||
# | ||
# - name: Upload Linux app | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: clipevery-linux-${{ env.PACKAGE_VERSION }} | ||
# path: output/clipevery-linux-${{ env.PACKAGE_VERSION }}/*.deb | ||
# if-no-files-found: error | ||
# | ||
# # conveyor default cache directory is .conveyor/cache | ||
# # Avoid caching it, causing Github space payment | ||
# - name: Cleanup Conveyor | ||
# if: always() | ||
# run: | | ||
# rm -f developerID_application.p12 | ||
# rm -rf .conveyor/cache/* | ||
# | ||
# - name: Display file tree with sizes | ||
# run: | | ||
# echo "Displaying the size of files and directories in 'output' directory:" | ||
# du -ah output | sort -rh | ||
# | ||
# # delete output directory to free up space, Github Action only has 14G space, | ||
# # to avoid the failure of insufficient space in the subsequent post recycling steps | ||
# - name: Delete output directory | ||
# run: rm -rf output |