-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-github-release.sh
More file actions
executable file
·39 lines (38 loc) · 1.52 KB
/
Copy pathcreate-github-release.sh
File metadata and controls
executable file
·39 lines (38 loc) · 1.52 KB
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
35
36
37
38
39
#!/bin/bash
# Script to create GitHub release v5.0.3
echo "Creating GitHub Release v5.0.3..."
echo ""
echo "Option 1: Using GitHub Web Interface (Recommended)"
echo "=================================================="
echo "1. Go to: https://github.com/xelth-com/eckSnapshot/releases/new"
echo "2. Tag: v5.0.3"
echo "3. Title: Release v5.0.3 - Major Feature Update"
echo "4. Copy-paste content from: RELEASE_NOTES_v5.0.3.md"
echo "5. Click 'Publish release'"
echo ""
echo "Option 2: Using GitHub CLI (if installed)"
echo "=========================================="
echo "gh release create v5.0.3 \\"
echo " --title 'Release v5.0.3 - Major Feature Update' \\"
echo " --notes-file RELEASE_NOTES_v5.0.3.md"
echo ""
echo "Option 3: Using curl with GitHub API"
echo "====================================="
echo "You need a GitHub Personal Access Token with 'repo' scope."
echo ""
echo "curl -X POST \\"
echo " -H 'Accept: application/vnd.github+json' \\"
echo " -H 'Authorization: Bearer YOUR_GITHUB_TOKEN' \\"
echo " https://api.github.com/repos/xelth-com/eckSnapshot/releases \\"
echo " -d @- << 'JSON'"
echo "{"
echo " \"tag_name\": \"v5.0.3\","
echo " \"name\": \"Release v5.0.3 - Major Feature Update\","
echo " \"body\": \"$(cat /tmp/release_body.md | jq -Rs .)\","
echo " \"draft\": false,"
echo " \"prerelease\": false"
echo "}"
echo "JSON"
echo ""
echo "Quick link to create release:"
echo "https://github.com/xelth-com/eckSnapshot/releases/new?tag=v5.0.3&title=Release+v5.0.3+-+Major+Feature+Update"