You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add CHANGELOG, LICENSE and improve release workflow
Added standard CHANGELOG.md and MIT LICENSE files. Updated GitHub Actions workflow to trigger on main/tags, conditionally publish artifacts and jobs, and create GitHub releases using the changelog.
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} # Add latest tag for main and version tags
107
122
108
123
- name: Build and push Docker image
109
124
uses: docker/build-push-action@v6
110
125
with:
111
-
context: . # Context now includes downloaded artifacts + checked out repo files
112
-
push: true# Already checked condition in 'if'
126
+
context: . # Context is the directory with extracted artifacts
127
+
push: true
113
128
tags: ${{ steps.meta.outputs.tags }}
114
129
labels: ${{ steps.meta.outputs.labels }}
115
130
cache-from: type=gha
116
-
cache-to: type=gha,mode=max
131
+
cache-to: type=gha,mode=max
132
+
133
+
create-release:
134
+
needs: [build, publish-npm, publish-docker] # Depend on build and both publish jobs
135
+
runs-on: ubuntu-latest
136
+
if: startsWith(github.ref, 'refs/tags/v') # Condition: Only run for tags
137
+
permissions:
138
+
contents: write # Need permission to create releases
139
+
steps:
140
+
- name: Download build artifacts archive
141
+
uses: actions/download-artifact@v4
142
+
with:
143
+
name: ${{ needs.build.outputs.artifact_name }} # Use consistent artifact name
144
+
path: .
145
+
146
+
- name: Extract build artifacts
147
+
run: tar -xzf ${{ needs.build.outputs.archive_filename }} # Use the correct archive filename from build job
148
+
149
+
- name: Create GitHub Release
150
+
uses: softprops/action-gh-release@v2
151
+
with:
152
+
tag_name: ${{ github.ref_name }}
153
+
name: Release ${{ github.ref_name }}
154
+
body_path: CHANGELOG.md # Assumes CHANGELOG.md is in the artifact root
155
+
# files: ${{ needs.build.outputs.archive_filename }} # Optional: Attach the full archive to the release
# Active Context: PDF Reader MCP Server (Initial Setup)
2
4
3
5
## 1. Current Focus
@@ -23,15 +25,18 @@ implementing the core PDF reading tools based on the `filesystem-mcp` template.
23
25
parameter into each source object, allowing different page selections for
24
26
different files in the same request. Updated `README.md` and Memory Bank files
25
27
again.
28
+
- Created `CHANGELOG.md` with initial structure.
29
+
- Created `LICENSE` file (MIT License).
30
+
- Updated `.github/workflows/publish.yml` to include main branch trigger, conditional artifact creation/upload, conditional job execution based on tags, and a `create-release` job using `CHANGELOG.md`.
26
31
27
32
## 3. Next Steps
28
33
29
-
- Update `memory-bank/progress.md` to reflect tool consolidation.
30
-
- Build the project (`npm run build`) again after adding multi-source support.
34
+
- Update `memory-bank/progress.md` to reflect recent changes (Changelog, License, Workflow).
35
+
- Build the project (`npm run build`).
36
+
- Test the updated GitHub Actions workflow by pushing a tag (e.g., `v0.3.0`).
31
37
- Consider adding basic tests for the PDF handlers.
32
-
- Commit the initial implementation to the Git repository.
33
-
- Potentially test the server using `@modelcontextprotocol/inspector` or by
34
-
integrating with Cline.
38
+
- Commit changes to the Git repository.
39
+
- Potentially test the server using `@modelcontextprotocol/inspector` or by integrating with Cline.
-**Testing Framework:** Consider adding automated tests (e.g., using Jest or Vitest) for handlers.
34
31
-**Refinement:** Review code for potential improvements or edge cases missed.
35
-
-**Publishing Setup:** Ensure GitHub Actions workflow in
36
-
`.github/workflows/publish.yml` is correctly configured for the new package
37
-
name and Docker image name (if not already done).
32
+
-**Publishing Workflow Test:** Test the updated GitHub Actions workflow by pushing a version tag (e.g., `v0.3.0`) and verifying npm/Docker publish and GitHub Release creation.
38
33
39
34
## 3. Current Status
40
35
41
-
Moved `pages` parameter to be per-source in `read_pdf` handler. Documentation
42
-
updated. Ready for final build and testing.
36
+
Added `CHANGELOG.md`, `LICENSE`. Updated GitHub Actions workflow for improved release process. Ready for build and testing, including workflow verification.
0 commit comments