Skip to content

Commit 74075a6

Browse files
committed
Split mvn and github publishing steps
1 parent 43788a3 commit 74075a6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yaml

+8-5
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,10 @@ jobs:
586586
- name: Add SBT proxy repositories
587587
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
588588

589-
- name: Publish Release
589+
- name: Prepare Release
590590
run: |
591591
./project/scripts/sbt dist/packArchive
592592
sha256sum dist/target/scala3-* > dist/target/sha256sum.txt
593-
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
594593
echo "RELEASE_TAG=${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV
595594
596595
- name: Create GitHub Release
@@ -601,9 +600,9 @@ jobs:
601600
with:
602601
tag_name: ${{ github.ref }}
603602
release_name: ${{ github.ref }}
604-
body:
605-
draft: false
606-
prerelease: ${{ contains(env.RELEASE_TAG, 'M') }}
603+
body_path: ./changelogs/${{ env.RELEASE_TAG }}.md
604+
draft: true
605+
prerelease: ${{ contains(env.RELEASE_TAG, '-') }}
607606

608607
- name: Upload zip archive to GitHub Release
609608
uses: actions/upload-release-asset@v1
@@ -635,6 +634,10 @@ jobs:
635634
asset_name: sha256sum.txt
636635
asset_content_type: text/plain
637636

637+
- name: Publish Release
638+
run: ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
639+
640+
638641
open_issue_on_failure:
639642
runs-on: [self-hosted, Linux]
640643
container:

0 commit comments

Comments
 (0)