Add Gitea release upload for tagged versions
When a tag is pushed, build PDFs and upload them to a Gitea release. Uses wp-gitea-release plugin. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# ClearGrow Docs - PDF Generation Pipeline
|
||||
# Triggers on push to any branch and pull requests
|
||||
# Triggers on push to any branch, pull requests, and tags
|
||||
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
- event: [push, pull_request, tag]
|
||||
|
||||
steps:
|
||||
- name: build-pdfs
|
||||
@@ -11,6 +11,7 @@ steps:
|
||||
- echo "=== ClearGrow Documentation Build ==="
|
||||
- 'echo "Commit: ${CI_COMMIT_SHA}"'
|
||||
- 'echo "Branch: ${CI_COMMIT_BRANCH}"'
|
||||
- 'echo "Tag: ${CI_COMMIT_TAG}"'
|
||||
- echo ""
|
||||
# Install bash and fonts (Alpine only has sh)
|
||||
- apk add --no-cache bash font-dejavu
|
||||
@@ -22,3 +23,24 @@ steps:
|
||||
- echo ""
|
||||
- 'echo "Generated PDFs:"'
|
||||
- ls -lh pdf-output/ClearGrow_*.pdf 2>/dev/null || echo "No PDFs generated"
|
||||
|
||||
- name: release
|
||||
image: quay.io/thegeeklab/wp-gitea-release
|
||||
when:
|
||||
- event: tag
|
||||
settings:
|
||||
base_url: https://git.cleargrow.io
|
||||
api_key:
|
||||
from_secret: gitea_release_token
|
||||
files:
|
||||
- pdf-output/*.pdf
|
||||
title: "Documentation ${CI_COMMIT_TAG}"
|
||||
note: |
|
||||
## ClearGrow Documentation Release ${CI_COMMIT_TAG}
|
||||
|
||||
This release contains the following PDF documents:
|
||||
- User Quick Start Guide
|
||||
- Complete User Guide
|
||||
- Developer Guide
|
||||
- API Reference
|
||||
- Technical Manual
|
||||
|
||||
Reference in New Issue
Block a user