fix: use GitHub API directly instead of deprecated plugin
The old plugin only works on tag events. Using curl to call GitHub API directly to create releases. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+14
-6
@@ -102,11 +102,19 @@ steps:
|
||||
|
||||
# Create GitHub release
|
||||
- name: release
|
||||
image: woodpeckerci/plugin-github-release
|
||||
settings:
|
||||
api_key:
|
||||
image: alpine
|
||||
environment:
|
||||
GITHUB_TOKEN:
|
||||
from_secret: github_token
|
||||
files:
|
||||
- artifacts/*.nupkg
|
||||
prerelease: false
|
||||
commands:
|
||||
- apk add --no-cache curl
|
||||
- |
|
||||
TAG=$$(cat .tag)
|
||||
VERSION=$$(cat .version)
|
||||
echo "Creating GitHub release for $$TAG"
|
||||
curl -X POST \
|
||||
-H "Authorization: token $$GITHUB_TOKEN" \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/barryw/PaperlessMCP/releases \
|
||||
-d "{\"tag_name\":\"$$TAG\",\"name\":\"Release $$VERSION\",\"body\":\"Release $$VERSION\",\"draft\":false,\"prerelease\":false}"
|
||||
depends_on: [git-tag]
|
||||
|
||||
Reference in New Issue
Block a user