Skip to content

Commit 241d586

Browse files
authored
Merge pull request #14817 from dotty-staging/split-publishing-steps
Split mvn and github publishing steps
2 parents 616308d + 3b96a31 commit 241d586

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -600,11 +600,10 @@ jobs:
600600
- name: Add SBT proxy repositories
601601
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
602602

603-
- name: Publish Release
603+
- name: Prepare Release
604604
run: |
605605
./project/scripts/sbt dist/packArchive
606606
sha256sum dist/target/scala3-* > dist/target/sha256sum.txt
607-
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
608607
echo "RELEASE_TAG=${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV
609608
610609
- name: Create GitHub Release
@@ -615,9 +614,9 @@ jobs:
615614
with:
616615
tag_name: ${{ github.ref }}
617616
release_name: ${{ github.ref }}
618-
body:
619-
draft: false
620-
prerelease: ${{ contains(env.RELEASE_TAG, 'M') }}
617+
body_path: ./changelogs/${{ env.RELEASE_TAG }}.md
618+
draft: true
619+
prerelease: ${{ contains(env.RELEASE_TAG, '-') }}
621620

622621
- name: Upload zip archive to GitHub Release
623622
uses: actions/upload-release-asset@v1
@@ -649,6 +648,10 @@ jobs:
649648
asset_name: sha256sum.txt
650649
asset_content_type: text/plain
651650

651+
- name: Publish Release
652+
run: ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
653+
654+
652655
open_issue_on_failure:
653656
runs-on: [self-hosted, Linux]
654657
container:

0 commit comments

Comments
 (0)