diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 88e7e4ebc9e5..56dadb44d8cf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -600,11 +600,10 @@ jobs: - name: Add SBT proxy repositories run: cp -vf .github/workflows/repositories /root/.sbt/ ; true - - name: Publish Release + - name: Prepare Release run: | ./project/scripts/sbt dist/packArchive sha256sum dist/target/scala3-* > dist/target/sha256sum.txt - ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease" echo "RELEASE_TAG=${GITHUB_REF#*refs/tags/}" >> $GITHUB_ENV - name: Create GitHub Release @@ -615,9 +614,9 @@ jobs: with: tag_name: ${{ github.ref }} release_name: ${{ github.ref }} - body: - draft: false - prerelease: ${{ contains(env.RELEASE_TAG, 'M') }} + body_path: ./changelogs/${{ env.RELEASE_TAG }}.md + draft: true + prerelease: ${{ contains(env.RELEASE_TAG, '-') }} - name: Upload zip archive to GitHub Release uses: actions/upload-release-asset@v1 @@ -649,6 +648,10 @@ jobs: asset_name: sha256sum.txt asset_content_type: text/plain + - name: Publish Release + run: ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease" + + open_issue_on_failure: runs-on: [self-hosted, Linux] container: