keep just gcr
name: Release
on: workflow_dispatch
jobs:
- build:
- name: Release artifacts to Bintray, Maven Central & SDKMAN, and publish documentation
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- with:
- token: ${{ secrets.GH_TOKEN }}
- - uses: gradle/wrapper-validation-action@v1
- - name: Set up JDK
- uses: actions/setup-java@v3.3.0
- with:
- distribution: 'adopt'
- java-version: '8'
- - name: Set the current release version
- id: release_version
- run: echo ::set-output name=release_version::${GITHUB_REF:11}
- - name: Run pre-release
- uses: micronaut-projects/github-actions/pre-release@master
- env:
- MICRONAUT_BUILD_EMAIL: ${{ secrets.MICRONAUT_BUILD_EMAIL }}
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- - name: Build All
- run: ./gradlew micronaut-cli:assemble
- env:
- GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
- GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
gcr:
name: Deploy to Cloud Run
runs-on: ubuntu-latest
