mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 14:55:37 +00:00
Add CI workflow and helper to create releases and attach artifacts
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Usage: ./scripts/trigger_release.sh <tag> "Release Title" "Release notes"
|
||||
set -euo pipefail
|
||||
if ! command -v gh >/dev/null 2>&1; then
|
||||
echo "gh (GitHub CLI) is required to trigger the workflow. Install: https://cli.github.com/"
|
||||
exit 1
|
||||
fi
|
||||
TAG="$1"
|
||||
RELEASE_NAME="$2"
|
||||
BODY="${3:-}"
|
||||
# Trigger the workflow_dispatch for the create-release workflow
|
||||
gh workflow run .github/workflows/create-release.yml -f tag_name="$TAG" -f release_name="$RELEASE_NAME" -f body="$BODY"
|
||||
echo "Triggered workflow to create release $TAG"
|
||||
Reference in New Issue
Block a user