From 9dc82c84906abab0157c4738c83ab1fb2cc39efb Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 23 Jul 2025 09:35:36 +0200 Subject: [PATCH] fix: replace github-release plugin with direct curl API call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The github-release plugin was incorrectly detecting and using the Gitea API instead of GitHub's API. Replaced with direct curl command that explicitly calls GitHub API to create releases. This approach: - Uses curlimages/curl image for lightweight execution - Directly calls GitHub API v3 with proper authentication - Avoids any auto-detection issues from the plugin - Creates releases with full markdown formatting 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .drone.yml | 70 +++++++++++++++++++----------------------------------- 1 file changed, 25 insertions(+), 45 deletions(-) diff --git a/.drone.yml b/.drone.yml index 69718ca..a57c2ae 100644 --- a/.drone.yml +++ b/.drone.yml @@ -110,53 +110,33 @@ steps: # -------- NEW: Create GitHub Release -------- - name: github-release - image: plugins/github-release + image: curlimages/curl:latest + when: + event: tag environment: - PLUGIN_API_KEY: + GITHUB_TOKEN: from_secret: GITHUB_TOKEN - DRONE_REMOTE_URL: https://github.com/the-luap/picpeak.git - settings: - api_key: - from_secret: GITHUB_TOKEN - repo: the-luap/picpeak - title: "PicPeak ${DRONE_TAG}" - prerelease: false - overwrite: true - note: | - # PicPeak ${DRONE_TAG} - - ## 🐳 Docker Images - - This release includes Docker images published to GitHub Container Registry: - - ```bash - # Backend - docker pull ghcr.io/the-luap/picpeak-backend:${DRONE_TAG} - docker pull ghcr.io/the-luap/picpeak-backend:latest - - # Frontend - docker pull ghcr.io/the-luap/picpeak-frontend:${DRONE_TAG} - docker pull ghcr.io/the-luap/picpeak-frontend:latest - ``` - - ## 📦 What's New - - See the [README](https://github.com/the-luap/picpeak#readme) for features and documentation. - - ## 🚀 Quick Start - - ```bash - # Clone and deploy - git clone https://github.com/the-luap/picpeak.git - cd picpeak - - # Use the tagged version - docker-compose -f docker-compose.prod.yml up -d - ``` - - --- - - For detailed deployment instructions, see the [Deployment Guide](https://github.com/the-luap/picpeak/blob/main/DEPLOYMENT.md). + commands: + - | + # Create release payload + cat > release.json <