π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update workflow
Prateek Sunal9c9094990c4d
diff --git a/.github/workflows/ensu-release.yml b/.github/workflows/ensu-release.ymlindex 91b11b2ea9..e70211c631 100644--- a/.github/workflows/ensu-release.yml+++ b/.github/workflows/ensu-release.yml@@ -32,10 +32,18 @@ jobs:runs-on: ${{ matrix.platform.os }}env:- HAS_MAC_SIGNING: ${{ secrets.MAC_OS_CERTIFICATE != '' && secrets.MAC_OS_CERTIFICATE_PASSWORD != '' && secrets.APPLE_ID != '' && secrets.APPLE_PASSWORD != '' && secrets.APPLE_TEAM_ID != '' }}HAS_WINDOWS_SIGNING: ${{ secrets.AZURE_TENANT_ID != '' && secrets.AZURE_CLIENT_ID != '' && secrets.AZURE_CLIENT_SECRET != '' && secrets.AZURE_ENDPOINT != '' && secrets.AZURE_CODE_SIGNING_NAME != '' && secrets.AZURE_CERT_PROFILE_NAME != '' }}steps:+ - name: Set release tag+ shell: bash+ run: |+ if [[ "${{ github.ref }}" == refs/tags/* ]]; then+ echo "RELEASE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV+ else+ echo "RELEASE_TAG=ensu-nightly-$(date -u +%Y%m%d)" >> $GITHUB_ENV+ fi+- name: Checkout codeuses: actions/checkout@v4@@ -110,8 +118,8 @@ jobs:APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}with:projectPath: rust/apps/ensu- tagName: ${{ github.ref_name }}- releaseName: "Ensu Desktop ${{ github.ref_name }}"+ tagName: ${{ env.RELEASE_TAG }}+ releaseName: "Ensu Desktop ${{ env.RELEASE_TAG }}"releaseBody: |Desktop release for Ensu@@ -125,52 +133,6 @@ jobs:prerelease: falseargs: ${{ matrix.platform.rust-target != 'x86_64-unknown-linux-gnu' && format('--target {0}', matrix.platform.rust-target) || '' }}- - name: Locate macOS DMG- id: macos-dmg- if: matrix.platform.os == 'macos-latest' && env.HAS_MAC_SIGNING == 'true'- run: |- DMG_PATH=$(find "${{ github.workspace }}/rust/apps/ensu/src-tauri/target/${{ matrix.platform.rust-target }}/release/bundle" -type f -name "*.dmg" | head -n 1)- if [ -z "$DMG_PATH" ]; then- echo "No DMG artifact found"- exit 1- fi- echo "path=$DMG_PATH" >> "$GITHUB_OUTPUT"- echo "Found DMG: $DMG_PATH"- shell: bash-- - name: Sign macOS DMG- if: matrix.platform.os == 'macos-latest' && env.HAS_MAC_SIGNING == 'true'- run: |- CERT_NAME=$(security find-identity -v -p codesigning | grep "Developer ID Application" | awk -F'"' '{print $2}' | grep -m1 "")- codesign --force --timestamp --sign "$CERT_NAME" --options runtime "${{ steps.macos-dmg.outputs.path }}"- codesign --verify --verbose=4 "${{ steps.macos-dmg.outputs.path }}"- shell: bash-- - name: Notarize and staple DMG- if: matrix.platform.os == 'macos-latest' && env.HAS_MAC_SIGNING == 'true'- run: |- xcrun notarytool submit "${{ steps.macos-dmg.outputs.path }}" \- --wait \- --apple-id "$APPLE_ID" \- --password "$APPLE_PASSWORD" \- --team-id "$APPLE_TEAM_ID"- xcrun stapler staple "${{ steps.macos-dmg.outputs.path }}"- env:- APPLE_ID: ${{ secrets.APPLE_ID }}- APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}- APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}- shell: bash-- - name: Upload signed macOS artifacts to draft GitHub release- if: matrix.platform.os == 'macos-latest' && env.HAS_MAC_SIGNING == 'true'- uses: ncipollo/release-action@v1- with:- tag: ${{ github.ref_name }}- artifacts: ${{ steps.macos-dmg.outputs.path }}- draft: true- allowUpdates: true- updateOnlyUnreleased: true-- name: Locate Windows signing artifactsid: windows-signing-artifactsif: matrix.platform.os == 'windows-latest' && env.HAS_WINDOWS_SIGNING == 'true'@@ -211,7 +173,7 @@ jobs:if: matrix.platform.os == 'windows-latest' && env.HAS_WINDOWS_SIGNING == 'true'uses: ncipollo/release-action@v1with:- tag: ${{ github.ref_name }}+ tag: ${{ env.RELEASE_TAG }}artifacts: ${{ steps.windows-signing-artifacts.outputs.files }}allowUpdates: truedraft: true@@ -296,9 +258,9 @@ jobs:if: env.HAS_ANDROID_SIGNING == 'true'run: |mkdir -p artifacts- cp app-ui/build/outputs/apk/release/app-ui-release.apk artifacts/ensu-${{ github.ref_name }}.apk+ cp app-ui/build/outputs/apk/release/app-ui-release.apk artifacts/ensu-${{ env.RELEASE_TAG }}.apkif [ "${HAS_PLAYSTORE_SERVICE_ACCOUNT}" = "true" ]; then- cp app-ui/build/outputs/bundle/release/app-ui-release.aab artifacts/ensu-${{ github.ref_name }}.aab+ cp app-ui/build/outputs/bundle/release/app-ui-release.aab artifacts/ensu-${{ env.RELEASE_TAG }}.aabfi- name: Attach Android artifacts to draft GitHub release