mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-28 11:28:12 +08:00
a2a066d8b4
* Deploy app.element.io & staging.element.io via Github Actions Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Simplify - this check is done by the Environment protection Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
name: Upload release assets
|
|
description: Uploads assets to an existing release and optionally signs them
|
|
inputs:
|
|
tag:
|
|
description: GitHub release tag to fetch assets from.
|
|
required: true
|
|
out-file-path:
|
|
description: Path to where the webapp should be extracted to.
|
|
required: true
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Download current version for its old bundles
|
|
id: current_download
|
|
uses: robinraju/release-downloader@a96f54c1b5f5e09e47d9504526e96febd949d4c2 # v1
|
|
with:
|
|
tag: steps.current_version.outputs.version
|
|
fileName: element-*.tar.gz*
|
|
out-file-path: ${{ runner.temp }}/download-verify-element-tarball
|
|
|
|
- name: Verify tarball
|
|
run: gpg --verify element-*.tar.gz.asc element-*.tar.gz
|
|
working-directory: ${{ runner.temp }}/download-verify-element-tarball
|
|
|
|
- name: Extract tarball
|
|
run: tar xvzf element-*.tar.gz -C webapp --strip-components=1
|
|
working-directory: ${{ runner.temp }}/download-verify-element-tarball
|
|
|
|
- name: Move webapp to out-file-path
|
|
run: mv ${{ runner.temp }}/download-verify-element-tarball/webapp ${{ inputs.out-file-path }}
|
|
|
|
- name: Clean up temp directory
|
|
run: rm -R ${{ runner.temp }}/download-verify-element-tarball
|