From e7893560fdebfeece15fad715e9854bcb4bafb1e Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 13 Jun 2024 09:48:55 +0200 Subject: [PATCH] Use deploy key to build Element Enterprise --- .github/workflows/nightly_enterprise.yml | 6 +++++- .github/workflows/release.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly_enterprise.yml b/.github/workflows/nightly_enterprise.yml index 97dc23c312..9cd80fe094 100644 --- a/.github/workflows/nightly_enterprise.yml +++ b/.github/workflows/nightly_enterprise.yml @@ -17,8 +17,12 @@ jobs: if: ${{ github.repository == 'element-hq/element-x-android' }} steps: - uses: actions/checkout@v4 + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 with: - submodules: 'true' + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Use JDK 17 uses: actions/setup-java@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af3abba254..b58f2f3348 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,8 +47,12 @@ jobs: cancel-in-progress: true steps: - uses: actions/checkout@v4 + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 with: - submodules: 'true' + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Use JDK 17 uses: actions/setup-java@v4 with: