1 Commits

Author SHA1 Message Date
25d4610903 Fix release: use Gitea API directly instead of gitea-release-action
Helm Chart CI & Release / Lint Helm Chart (push) Successful in 9s
Helm Chart CI & Release / Semantic Release (push) Successful in 10s
The action requires Node 18+ (Headers API) but runner uses Node 16.
Use curl against Gitea API for release creation and asset upload.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-19 20:02:43 +00:00
+22 -10
View File
@@ -124,14 +124,26 @@ jobs:
git push https://${{ gitea.actor }}:${{ gitea.token }}@git.produktor.io/${{ gitea.repository }}.git "${{ steps.version.outputs.new_tag }}" git push https://${{ gitea.actor }}:${{ gitea.token }}@git.produktor.io/${{ gitea.repository }}.git "${{ steps.version.outputs.new_tag }}"
- name: Create Gitea Release - name: Create Gitea Release
uses: https://gitea.com/actions/gitea-release-action@v1 run: |
with: TAG="${{ steps.version.outputs.new_tag }}"
server_url: ${{ gitea.server_url }} BUMP="${{ steps.version.outputs.bump_type }}"
token: ${{ gitea.token }} API="https://git.produktor.io/api/v1/repos/${{ gitea.repository }}/releases"
tag_name: ${{ steps.version.outputs.new_tag }} TOKEN="${{ gitea.token }}"
name: FleetDM Stack ${{ steps.version.outputs.new_tag }}
body: |
**${{ steps.version.outputs.bump_type }}** release — `${{ steps.version.outputs.new_tag }}`
Helm chart for FleetDM Server with MySQL and Redis. # Create release
files: .tmp/*.tgz RELEASE=$(curl -sf -X POST "$API" \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
-d "{\"tag_name\":\"$TAG\",\"name\":\"FleetDM Stack $TAG\",\"body\":\"**${BUMP}** release — \`${TAG}\`\n\nHelm chart for FleetDM Server with MySQL and Redis.\"}")
RELEASE_ID=$(echo "$RELEASE" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)
echo "Created release ID: $RELEASE_ID"
# Upload chart package
for f in .tmp/*.tgz; do
FNAME=$(basename "$f")
curl -sf -X POST "$API/$RELEASE_ID/assets?name=$FNAME" \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary "@$f"
echo "Uploaded: $FNAME"
done