Some checks failed
Docker / Docker Buildx (push) Has been cancelled
Build Debian package / Build package (release) Has been cancelled
Build and Deploy / prepare (release) Has been cancelled
Deploy release / Deploy to Cloudflare Pages (release) Has been cancelled
Build and Deploy / Trigger Pro pipeline (release) Has been cancelled
Build and Deploy / Windows arm64 (release) Has been cancelled
Build and Deploy / Windows x64 (release) Has been cancelled
Build and Deploy / macOS (release) Has been cancelled
Build and Deploy / Linux amd64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / Linux arm64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / ${{ needs.prepare.outputs.deploy == 'true' && 'Deploy' || 'Deploy (dry-run)' }} (release) Has been cancelled
Build and Deploy / Deploy builds to ESS (release) Has been cancelled
41 lines
1.4 KiB
YAML
41 lines
1.4 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 release tarball
|
|
uses: robinraju/release-downloader@28fc21f50d76778e7023361aa1f863e717d3d56f # v1
|
|
with:
|
|
tag: ${{ inputs.tag }}
|
|
fileName: element-*.tar.gz*
|
|
out-file-path: ${{ runner.temp }}/download-verify-element-tarball
|
|
|
|
- name: Verify tarball
|
|
shell: bash
|
|
run: gpg --verify element-*.tar.gz.asc element-*.tar.gz
|
|
working-directory: ${{ runner.temp }}/download-verify-element-tarball
|
|
|
|
- name: Extract tarball
|
|
shell: bash
|
|
run: |
|
|
mkdir webapp
|
|
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
|
|
shell: bash
|
|
run: mv ${{ runner.temp }}/download-verify-element-tarball/webapp "$OUT_PATH"
|
|
env:
|
|
OUT_PATH: ${{ inputs.out-file-path }}
|
|
|
|
- name: Clean up temp directory
|
|
shell: bash
|
|
run: rm -R ${{ runner.temp }}/download-verify-element-tarball
|