mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 12:19:54 +00:00
* ci: skip 8.10.7 on release * ci: switch to sha256 * script/reproduce-builds: make it executable * scripts/reproduce-builds: rename to simplex-chat-reproduce-builds * ci: bump actions * ci: 20.04 is deprecated * scripts/reproduce-builds: remove Ubuntu 20.04 * docs: adjust reproduce script * ci: skip 8.10.7 in stable or release for Linux * ci: really skup 8.10.7 in stable or release * ci: remove useless linux checks * ci: remove timeout from mac tests * ci: fix action names * ci: setup swap for 8.10.7 * ci: bump swap to 30gb * ci: simplify * ci: 10 -> 3 retries * ci: retry only in stable or release
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: "Upload binary and update hash"
|
|
description: "Reusable steps for multiple jobs"
|
|
inputs:
|
|
bin_path:
|
|
required: true
|
|
description: "Path to binary to upload"
|
|
bin_name:
|
|
required: true
|
|
description: "Name of uploaded binary"
|
|
bin_hash:
|
|
required: true
|
|
description: "Message with SHA to include in release"
|
|
github_ref:
|
|
required: true
|
|
description: "Github reference"
|
|
github_token:
|
|
required: true
|
|
description: "Github token"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Upload file with specific name
|
|
if: startsWith(inputs.github_ref, 'refs/tags/v')
|
|
uses: simplex-chat/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ inputs.github_token }}
|
|
file: ${{ inputs.bin_path }}
|
|
asset_name: ${{ inputs.bin_name }}
|
|
tag: ${{ inputs.github_ref }}
|
|
|
|
- name: Add hash to release notes
|
|
if: startsWith(inputs.github_ref, 'refs/tags/v')
|
|
uses: simplex-chat/action-gh-release@v2
|
|
env:
|
|
GITHUB_TOKEN: ${{ inputs.github_token }}
|
|
with:
|
|
append_body: true
|
|
body: |
|
|
${{ inputs.bin_hash }}
|