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
|
# Create GitHub release
|
||||||
- name: release
|
- name: release
|
||||||
image: woodpeckerci/plugin-github-release
|
image: alpine
|
||||||
settings:
|
environment:
|
||||||
api_key:
|
GITHUB_TOKEN:
|
||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
files:
|
commands:
|
||||||
- artifacts/*.nupkg
|
- apk add --no-cache curl
|
||||||
prerelease: false
|
- |
|
||||||
|
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]
|
depends_on: [git-tag]
|
||||||
|
|||||||
Reference in New Issue
Block a user