Skip to content

Chore(cli): Upgrade supershorty to 0.3 #7

Chore(cli): Upgrade supershorty to 0.3

Chore(cli): Upgrade supershorty to 0.3 #7

Workflow file for this run

name: Release the Binaries
on:
push:
tags: ["**"]
jobs:
build:
name: Build Binaries
uses: ./.github/workflows/build.yml
release:
name: Create GitHub Release
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
path: ./artifacts
- name: Rename files
run: |
src_dir="${{ github.workspace }}/artifacts"
out_dir="${{ github.workspace }}/out"
mkdir -p "$out_dir"
find "$src_dir" -mindepth 1 -maxdepth 1 -type d ! -name "$out_dir" | while read -r dir; do
file=$(find "$dir" -maxdepth 1 -type f | head -n 1)
[ -z "$file" ] && continue
folder_name=$(basename "$dir")
ext="${file##*.}"
target="$out_dir/$folder_name"
if [ "$ext" = "exe" ]; then
target="${target}.exe"
fi
cp -- "$file" "$target"
printf 'copied %s → %s\n' "$file" "$target"
done
shell: bash
- name: Create release
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${{ github.ref_name }}" \
--repo="${{ github.repository }}" \
--title="${{ github.ref_name }}" \
--generate-notes \
${{ github.workspace }}/out/*
shell: bash