Make SDKman a separate job that depends on native builds
@@ -57,11 +57,6 @@ jobs:
uses: micronaut-projects/github-actions/post-release@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- - name: SDKMAN release
- env:
- GVM_SDKVENDOR_KEY: ${{ secrets.GVM_SDKVENDOR_KEY }}
- GVM_SDKVENDOR_TOKEN: ${{ secrets.GVM_SDKVENDOR_TOKEN }}
- run: ./gradlew sdkMinorRelease --no-daemon
linux:
name: Release Linux Native CLI
runs-on: ubuntu-latest
@@ -74,9 +69,6 @@ jobs:
release_version=${GITHUB_REF:11}
sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties
echo ::set-output name=release_version::${release_version}
- - name: Set the current release version
- id: release_version
- run: echo ::set-output name=release_version::${GITHUB_REF:11}
- name: Install GraalVM
env:
GRAAL_VERSION: 20.1.0
@@ -213,6 +205,24 @@ jobs:
asset_path: ./mn-win-amd64-${{ github.event.release.tag_name }}.zip
asset_name: mn-win-amd64-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip
+ sdkman:
+ name: Release to SDKMAN!
+ runs-on: ubuntu-latest
+ needs: [linux, macos, windows]
+ steps:
+ - name: Checkout the repository
+ uses: actions/checkout@v1
+ - name: Set the current release version
+ id: release_version
+ run: |
+ release_version=${GITHUB_REF:11}
+ sed -i "s/^projectVersion.*$/projectVersion\=${release_version}/" gradle.properties
+ echo ::set-output name=release_version::${release_version}
+ - name: SDKMAN release
+ env:
+ GVM_SDKVENDOR_KEY: ${{ secrets.GVM_SDKVENDOR_KEY }}
+ GVM_SDKVENDOR_TOKEN: ${{ secrets.GVM_SDKVENDOR_TOKEN }}
+ run: ./gradlew sdkMinorRelease --no-daemon
gcr:
name: Deploy to Cloud Run
runs-on: ubuntu-latest
