Merge branch 'master' into jh-fork #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & deploy release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'gradle' | |
- name: Set version to release | |
run: ./gradlew --no-daemon unSnapshotVersion | |
- name: Commit release version | |
run: ./gradlew --no-daemon commitVersion | |
- name: Build & deploy to Nexus | |
env: | |
REPO_PASSWORD: ${{ secrets.NEXUS_CI }} | |
run: ./gradlew --no-daemon publish | |
- name: Push to master | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |