-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (33 loc) · 1 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Upload Release Asset
jobs:
appimage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
set -x
sh -eux tools/build-appimage-container
ARCH=$(uname -m) sh -eux tools/build-appimage
assets=()
for asset in $(find . -name '*.AppImage'); do
assets+=("$asset")
bname=$(basename "$asset")
dname=$(dirname "$asset")
(cd "$dname" && md5sum "$bname" > "${bname}.md5")
(cd "$dname" && sha256sum "$bname" > "${bname}.sha256")
done
for asset in $(find . -name '*.md5'); do
assets+=("$asset")
done
for asset in $(find . -name '*.sha256'); do
assets+=("$asset")
done
tag_name="${GITHUB_REF##*/}"
gh release create $tag_name ${assets[@]}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}