Repository navigation
Commit e01eec5
authored
ci: use github token with release-please (#41)
* ci: run release-please from the deployment workflow with GITHUB_TOKEN
Drop MY_RELEASE_PLEASE_TOKEN, a long-lived token readable from any branch that
could push tags and therefore publish to PyPI. release-please now runs as the
first job of deployment.yml with the job token, and the build/publish jobs run
when it reports release_created, building the new tag (hatch-vcs unchanged).
This is the layout diracx-web already uses: a single workflow, because nothing
done with GITHUB_TOKEN (including the release tag) starts another workflow.
The workflow now only runs on pushes to the default branch, so the pypi
environment must allow that branch instead of v* tags.
Assisted-by: Claude:claude-opus-5-5
* ci: serialize release runs and allow re-publishing a tag
- concurrency group so two quick merges cannot race to create the same
release (queued runs are kept, one may wait on pypi approval)
- workflow_dispatch with a tag input to rebuild and publish an existing
release when the publish failed after the release was created
- drop the explicit token input (it is the action's default)
- install only build and readme_renderer; python -m build gets hatchling
and hatch-vcs from build-system.requires in its isolated env
- rename the workflow to "Release"; it now runs on every push to main
Assisted-by: Claude:claude-opus-5-5
* ci: trim release workflow comments
Assisted-by: Claude:claude-opus-5-51 parent 7c7a05e commit e01eec5
2 files changed
Lines changed: 45 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
4 | 18 | | |
5 | 19 | | |
6 | 20 | | |
7 | 21 | | |
8 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
9 | 40 | | |
10 | 41 | | |
| 42 | + | |
11 | 43 | | |
12 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
13 | 49 | | |
14 | 50 | | |
15 | 51 | | |
| 52 | + | |
| 53 | + | |
16 | 54 | | |
17 | 55 | | |
18 | 56 | | |
19 | 57 | | |
20 | 58 | | |
21 | 59 | | |
22 | 60 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 61 | + | |
30 | 62 | | |
31 | 63 | | |
32 | 64 | | |
| |||
41 | 73 | | |
42 | 74 | | |
43 | 75 | | |
| 76 | + | |
| 77 | + | |
44 | 78 | | |
45 | 79 | | |
46 | 80 | | |
47 | 81 | | |
48 | 82 | | |
49 | | - | |
| 83 | + | |
50 | 84 | | |
51 | 85 | | |
52 | 86 | | |
| |||
This file was deleted.
0 commit comments