Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Dec 13, 2024
1 parent aaeccb8 commit 40e41b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
# when in master repo, publish all tags and manual runs on main
if: github.repository == 'com-lihaoyi/mill'
runs-on: ubuntu-latest

env:
MILL_STABLE_VERSION: 1
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
Expand Down Expand Up @@ -56,6 +57,7 @@ jobs:
concurrency: publish-sonatype-${{ github.sha }}

env:
MILL_STABLE_VERSION: 1
MILL_SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MILL_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MILL_PGP_SECRET_BASE64: ${{ secrets.SONATYPE_PGP_SECRET }}
Expand Down Expand Up @@ -93,6 +95,7 @@ jobs:
runs-on: ubuntu-latest

env:
MILL_STABLE_VERSION: 1
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

steps:
Expand Down
8 changes: 2 additions & 6 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ object Deps {

def millVersion: T[String] = Task {
if (Task.env.contains("MILL_STABLE_VERSION")) VcsVersion.calcVcsState(Task.log).format()
else "DEV"
else "SNAPSHOT"
}

def millLastTag: T[String] = Task {
Expand Down Expand Up @@ -405,11 +405,7 @@ trait MillPublishJavaModule extends MillJavaModule with PublishModule {
}

def artifactName = "mill-" + super.artifactName()
def publishVersion = Task {
val version = millVersion()
assert(version != "DEV")
version
}
def publishVersion = millVersion()
def publishProperties = super.publishProperties() ++ Map(
"info.releaseNotesURL" -> Settings.changelogUrl
)
Expand Down

0 comments on commit 40e41b4

Please sign in to comment.