Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ jobs:
- uses: coursier/setup-action@v3
with:
jvm: 21
- run: ./mill -i mill.scalalib.SonatypeCentralPublishModule/
- name: Publish
run: |
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
./mill -i mill.scalalib.SonatypeCentralPublishModule/ --bundleName "coursier-versions-${GITHUB_REF#refs/tags/v}"
else
for tag in $(git tag --points-at HEAD); do
git tag -d "$tag"
done
./mill -i mill.scalalib.SonatypeCentralPublishModule/
fi
env:
MILL_PGP_SECRET_BASE64: ${{ secrets.PUBLISH_SECRET_KEY }}
MILL_PGP_PASSPHRASE: ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }}
Expand Down
4 changes: 4 additions & 0 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ trait VersionsMima extends Mima with PublishModule {
}

trait VersionsPublishModule extends PublishModule with VersionsMima {
// Publish almost empty javadoc JARs (only containing a manifest), rather
// than spending time generating actual API documentation
def docSources = Task { Seq.empty[PathRef] }

def pomSettings = PomSettings(
description = artifactName(),
organization = "io.get-coursier",
Expand Down