aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/upload_asset.sh
blob: 7b88f3766f447afa9bd95e7d1b5336a1ab7bf0bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -xeuo pipefail

file_path=$1

tag=$(git describe --tags --abbrev=0)

if ! gh release view "$tag"
then
    gh release create --draft "$tag"
fi

gh release upload "$tag" "$file_path"