From 2ebc1b4a897129f64ac16f435d3e1c8d7e44b77b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 26 Nov 2024 14:14:29 +0000 Subject: [PATCH] Fix deploy action Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/deploy.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a41a4dcec74..29c885badb4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,7 +1,8 @@ # Manual deploy workflow for deploying to app.element.io & staging.element.io # Runs automatically for staging.element.io when an RC or Release is published # Note: Does *NOT* run automatically for app.element.io so that it gets tested on staging.element.io beforehand -name: Build and Deploy ${{ inputs.site || 'staging.element.io' }} +name: Deploy release +run-name: Deploy ${{ github.ref_name }} to ${{ inputs.site || 'staging.element.io' }} on: release: types: [published] @@ -28,6 +29,8 @@ jobs: env: SITE: ${{ inputs.site || 'staging.element.io' }} steps: + - uses: actions/checkout@v4 + - name: Load GPG key run: | curl https://packages.element.io/element-release-key.gpg | gpg --import @@ -45,20 +48,20 @@ jobs: - name: Download current version for its old bundles id: current_download if: steps.current_version.outputs.version != github.ref_name - uses: element-hq/element-web/.github/actions/download-verify-element-tarball@${{ github.ref_name }} + uses: ./.github/actions/download-verify-element-tarball with: tag: steps.current_version.outputs.version - out-file-path: current_version + out-file-path: _current_version - name: Download target version - uses: element-hq/element-web/.github/actions/download-verify-element-tarball@${{ github.ref_name }} + uses: ./.github/actions/download-verify-element-tarball with: tag: ${{ github.ref_name }} out-file-path: _deploy - name: Merge current bundles into target if: steps.current_download.outcome == 'success' - run: cp -vnpr current_version/bundles/* _deploy/bundles/ + run: cp -vnpr _current_version/bundles/* _deploy/bundles/ - name: Copy config run: cp element.io/app/config.json _deploy/config.json