mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03:00
uberf-7856: fix desktop publishing CI (#6308)
This commit is contained in:
parent
d29f44ebd4
commit
db6cb9fde7
21
.github/workflows/main.yml
vendored
21
.github/workflows/main.yml
vendored
@ -38,6 +38,7 @@ env:
|
|||||||
rush.json
|
rush.json
|
||||||
.prettierrc
|
.prettierrc
|
||||||
tools
|
tools
|
||||||
|
PublishTempFolder: publish_artifacts
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
@ -574,23 +575,25 @@ jobs:
|
|||||||
security import $CERTIFICATE_PATH -P "$DEV_ID_P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
|
security import $CERTIFICATE_PATH -P "$DEV_ID_P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
|
||||||
security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
|
security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
|
||||||
security list-keychain -d user -s $KEYCHAIN_PATH
|
security list-keychain -d user -s $KEYCHAIN_PATH
|
||||||
- name: Build distribution's
|
|
||||||
env:
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
|
||||||
run: |
|
|
||||||
cd desktop-package
|
|
||||||
node ../common/scripts/install-run-rushx.js dist --linux --windows --x64
|
|
||||||
- name: Build distribution's
|
- name: Build distribution's
|
||||||
env:
|
env:
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
APPLE_ID_APP_PASS: ${{ secrets.APPLE_ID_APP_PASS }}
|
APPLE_ID_APP_PASS: ${{ secrets.APPLE_ID_APP_PASS }}
|
||||||
TEAM_ID: ${{ secrets.TEAM_ID }}
|
TEAM_ID: ${{ secrets.TEAM_ID }}
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
|
||||||
run: |
|
run: |
|
||||||
cd desktop-package
|
cd desktop-package
|
||||||
|
node ../common/scripts/install-run-rushx.js dist --linux --windows --x64
|
||||||
node ../common/scripts/install-run-rushx.js dist-signed --macos --x64 --arm64
|
node ../common/scripts/install-run-rushx.js dist-signed --macos --x64 --arm64
|
||||||
|
./scripts/copy-publish-artifacts.sh ${{ env.PublishTempFolder}}
|
||||||
|
- name: Publish distribution assets
|
||||||
|
uses: ryand56/r2-upload-action@latest
|
||||||
|
with:
|
||||||
|
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
|
||||||
|
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
|
||||||
|
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
||||||
|
r2-bucket: desktop-distro
|
||||||
|
source-dir: desktop-package/${{ env.PublishTempFolder}}
|
||||||
|
destination-dir: ./
|
||||||
- name: Publish distribution version
|
- name: Publish distribution version
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
||||||
|
@ -52,10 +52,8 @@
|
|||||||
"entitlementsInherit": "./entitlements.mac.plist",
|
"entitlementsInherit": "./entitlements.mac.plist",
|
||||||
"notarize": false,
|
"notarize": false,
|
||||||
"publish": {
|
"publish": {
|
||||||
"provider": "s3",
|
"provider": "generic",
|
||||||
"bucket": "desktop-distro",
|
"url": "https://dist.huly.io",
|
||||||
"acl": null,
|
|
||||||
"endpoint": "https://47fadbaa4ecbea9f3e8b7043a4584e27.r2.cloudflarestorage.com",
|
|
||||||
"channel": "latest"
|
"channel": "latest"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -68,10 +66,8 @@
|
|||||||
"verifyUpdateCodeSignature": false,
|
"verifyUpdateCodeSignature": false,
|
||||||
"icon": "./src/AppIcon.png",
|
"icon": "./src/AppIcon.png",
|
||||||
"publish": {
|
"publish": {
|
||||||
"provider": "s3",
|
"provider": "generic",
|
||||||
"bucket": "desktop-distro",
|
"url": "https://dist.huly.io",
|
||||||
"acl": null,
|
|
||||||
"endpoint": "https://47fadbaa4ecbea9f3e8b7043a4584e27.r2.cloudflarestorage.com",
|
|
||||||
"channel": "latest"
|
"channel": "latest"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -84,10 +80,8 @@
|
|||||||
],
|
],
|
||||||
"category": "Utility",
|
"category": "Utility",
|
||||||
"publish": {
|
"publish": {
|
||||||
"provider": "s3",
|
"provider": "generic",
|
||||||
"bucket": "desktop-distro",
|
"url": "https://dist.huly.io",
|
||||||
"acl": null,
|
|
||||||
"endpoint": "https://47fadbaa4ecbea9f3e8b7043a4584e27.r2.cloudflarestorage.com",
|
|
||||||
"channel": "latest"
|
"channel": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
desktop-package/scripts/copy-publish-artifacts.sh
Executable file
17
desktop-package/scripts/copy-publish-artifacts.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
SRC_FOLDER=deploy
|
||||||
|
TARGET_FOLDER=$1
|
||||||
|
CHANNEL=latest
|
||||||
|
|
||||||
|
if [ -d "$TARGET_FOLDER" ]; then rm -Rf $TARGET_FOLDER; fi
|
||||||
|
mkdir $TARGET_FOLDER
|
||||||
|
|
||||||
|
cp $SRC_FOLDER/*.blockmap $TARGET_FOLDER
|
||||||
|
cp $SRC_FOLDER/*.dmg $TARGET_FOLDER
|
||||||
|
cp $SRC_FOLDER/*.zip $TARGET_FOLDER
|
||||||
|
cp $SRC_FOLDER/*.AppImage $TARGET_FOLDER
|
||||||
|
cp $SRC_FOLDER/*.deb $TARGET_FOLDER
|
||||||
|
cp $SRC_FOLDER/*.exe $TARGET_FOLDER
|
||||||
|
cp $SRC_FOLDER/$CHANNEL.yml $TARGET_FOLDER
|
||||||
|
cp $SRC_FOLDER/$CHANNEL-mac.yml $TARGET_FOLDER
|
||||||
|
cp $SRC_FOLDER/$CHANNEL-linux.yml $TARGET_FOLDER
|
Loading…
Reference in New Issue
Block a user