Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # Required for creating releases
environment: release-workflow-env
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_SHA: ${{ github.sha }}
REPOSITORY: ${{ github.repository }}
VERSION_NUM: ${{ github.event.inputs.version || github.ref_name }}
Expand Down Expand Up @@ -90,10 +92,22 @@ jobs:
\"prerelease\": false
}")

echo "Release API response: $RELEASE_RESPONSE"

if echo "$RELEASE_RESPONSE" | jq -e '.message' > /dev/null; then
echo "Error creating release: $(echo "$RELEASE_RESPONSE" | jq -r '.message')"
exit 1
fi

UPLOAD_URL=$(echo "$RELEASE_RESPONSE" | jq -r '.upload_url' | sed 's/{?name,label}//')
RELEASE_ID=$(echo "$RELEASE_RESPONSE" | jq -r '.id')

echo UPLOAD_URL $UPLOAD_URL, RELEASE_ID $RELEASE_ID

if [ "$UPLOAD_URL" = "null" ] || [ "$RELEASE_ID" = "null" ]; then
echo "Failed to extract upload URL or release ID from response"
exit 1
fi

echo "UPLOAD_URL: $UPLOAD_URL, RELEASE_ID: $RELEASE_ID"

# Upload each tar.gz file
for file in *.tar.gz; do
Expand Down
1 change: 0 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ We use major.minor branches (e.g., `1.0`, `1.1`, `2.1`) for releases.
git tag 1.0.0
git push origin 1.0.0
```
- **GitHub UI**: Go to Releases → Create a new release
- **GitHub Actions**: Manually run "Create release" workflow from Actions tab

3. **Release notes**: Include code-oss version information in the release description
Expand Down