Skip to content

Commit 80bb3f2

Browse files
FBumannclaude
andauthored
ci: use GitHub App token for release-please (#5)
* ci: trigger checks on release-please branches Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: add fluxopt git dep to dev group Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: use GitHub App token for release-please GITHUB_TOKEN pushes don't trigger workflow events, so CI never runs on release-please PRs. Use a GitHub App token instead, which does trigger events and avoids PAT downsides (personal attribution, manual rotation). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4895c8f commit 80bb3f2

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,18 @@ jobs:
1616
release_created: ${{ steps.release.outputs.release_created }}
1717
tag_name: ${{ steps.release.outputs.tag_name }}
1818
steps:
19+
- uses: actions/create-github-app-token@v2
20+
id: app-token
21+
with:
22+
app-id: ${{ secrets.APP_ID }}
23+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
24+
1925
- uses: googleapis/release-please-action@v4
2026
id: release
2127
with:
2228
config-file: .release-please-config.json
2329
manifest-file: .release-please-manifest.json
30+
token: ${{ steps.app-token.outputs.token }}
2431

2532
publish:
2633
name: Build & publish to PyPI

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ include = ["src/fluxopt_plot/", "LICENSE", "README.md"]
4444

4545
[dependency-groups]
4646
dev = [
47+
"fluxopt @ git+https://github.com/FBumann/fluxopt.git",
4748
"mypy==1.19.1",
4849
"pre-commit==4.5.1",
4950
"pytest==9.0.2",

0 commit comments

Comments
 (0)