Commit 523705a
committed
#432 Publish SNAPSHOTs to GH Packages from CI
Add a publish-gh-packages job to gradle-build.yml that runs after
build-artifacts succeeds and pushes all four artifacts plus the
plugin marker to GitHub Packages.
Triggers only on push events to feature/* or bugfix/* branches —
those are the refs git-versioning rewrites to <slug>-SNAPSHOT
coordinates. develop and main fall through to gradle.properties'
static 2.0.0-rcN and would conflict with already-published
release versions, so we skip them here.
The job uses the auto-injected secrets.GITHUB_TOKEN (no PAT needed
for in-repo publishing) and github.actor as the username. The
conditional credential block in build.gradle picks them up; without
the env vars set (e.g. on PRs from forks) the GitHubPackages repo
isn't registered and the job's gradle invocation would be a no-op,
but the 'if:' gate prevents that path from running at all.1 parent 279b378 commit 523705a
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
21 | 54 | | |
22 | 55 | | |
23 | 56 | | |
| |||
0 commit comments