Skip to content

Commit 2074d4c

Browse files
committed
fix publishing
1 parent b0093ca commit 2074d4c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/actions.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
6060
publish-sonatype:
6161
if: github.repository == 'com-lihaoyi/cask' && contains(github.ref, 'refs/tags/')
62-
needs: test
6362
runs-on: ubuntu-latest
6463
env:
6564
MILL_SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
@@ -76,9 +75,20 @@ jobs:
7675
with:
7776
distribution: 'temurin'
7877
java-version: 11
78+
7979
- name: Publish to Maven Central
80-
run: ./mill -i mill.scalalib.PublishModule/
81-
80+
run: ./mill -i mill.scalalib.SonatypeCentralPublishModule/
81+
82+
- name: Create GitHub Release
83+
id: create_gh_release
84+
uses: actions/[email protected]
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
87+
with:
88+
tag_name: ${{ github.ref }}
89+
release_name: ${{ github.ref }}
90+
draft: false
91+
8292
uploadExamples:
8393
if: github.repository == 'com-lihaoyi/cask' && contains(github.ref, 'refs/tags/')
8494
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)