changes #4
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/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
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 }} |