Fix deploy action

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/28305/merge
Michael Telatynski 2024-11-26 14:14:29 +00:00
parent 756ce2c639
commit 2ebc1b4a89
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
1 changed files with 8 additions and 5 deletions

View File

@ -1,7 +1,8 @@
# Manual deploy workflow for deploying to app.element.io & staging.element.io # 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 # 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 # 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: on:
release: release:
types: [published] types: [published]
@ -28,6 +29,8 @@ jobs:
env: env:
SITE: ${{ inputs.site || 'staging.element.io' }} SITE: ${{ inputs.site || 'staging.element.io' }}
steps: steps:
- uses: actions/checkout@v4
- name: Load GPG key - name: Load GPG key
run: | run: |
curl https://packages.element.io/element-release-key.gpg | gpg --import curl https://packages.element.io/element-release-key.gpg | gpg --import
@ -45,20 +48,20 @@ jobs:
- name: Download current version for its old bundles - name: Download current version for its old bundles
id: current_download id: current_download
if: steps.current_version.outputs.version != github.ref_name 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: with:
tag: steps.current_version.outputs.version tag: steps.current_version.outputs.version
out-file-path: current_version out-file-path: _current_version
- name: Download target 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: with:
tag: ${{ github.ref_name }} tag: ${{ github.ref_name }}
out-file-path: _deploy out-file-path: _deploy
- name: Merge current bundles into target - name: Merge current bundles into target
if: steps.current_download.outcome == 'success' 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 - name: Copy config
run: cp element.io/app/config.json _deploy/config.json run: cp element.io/app/config.json _deploy/config.json