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
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,20 @@ Use `uv run pytest` (once tests are added) or `uvx ruff check .` for linting.
140
140
141
141
Both `uv publish` commands expect the relevant API token to be available in the `UV_PUBLISH_TOKEN` environment variable.
142
142
143
+
### GitHub Actions trusted publisher
144
+
145
+
This repository includes `.github/workflows/publish.yml`, which builds and uploads releases automatically on GitHub tag releases. To enable it:
146
+
147
+
1. Create a PyPI trusted publisher (pending or project-specific) pointing at:
148
+
-**Project**: `copilot-proxy`
149
+
-**Owner**: `modpotato`
150
+
-**Repository**: `copilot-proxy`
151
+
-**Workflow**: `publish.yml`
152
+
-**Environment**: `release`
153
+
2. In GitHub, create the matching repository environment (`Settings → Environments → New environment → release`).
154
+
3. Push a tag (e.g. `v0.1.0`) to GitHub (`git push origin v0.1.0`). The workflow will build with `uv`, publish to PyPI via OIDC, and create the GitHub release automatically.
155
+
4. For dry runs, use the **Run workflow** button; the manual dispatch builds and validates without publishing or creating a release.
156
+
143
157
## License
144
158
145
159
This project is licensed under the MIT License - see the LICENSE file for details.
0 commit comments