Skip to content

Release Termatica 1.5.1 #43

Release Termatica 1.5.1

Release Termatica 1.5.1 #43

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: macos-14
steps:
- uses: actions/checkout@v7
- name: Build, test, and package
run: make package
- name: Publish GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: |
assets=(
dist/Termatica-macOS-universal.dmg
dist/Termatica-macOS-universal.zip
dist/SHA256SUMS
)
if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
gh release upload "$GITHUB_REF_NAME" "${assets[@]}" --clobber
gh release edit "$GITHUB_REF_NAME" --title "Termatica $GITHUB_REF_NAME"
else
gh release create "$GITHUB_REF_NAME" "${assets[@]}" \
--title "Termatica $GITHUB_REF_NAME" \
--generate-notes
fi