Minor Fixes. #30
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: Bump Patch and Publish (Gradle) | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Java and Gradle | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Fix gradlew permissions (optional) | |
run: chmod +x gradlew | |
- name: Get Version Info with Specific Commits (using custom task) | |
# Pass numCommits from workflow to Gradle task as an environment variable | |
env: | |
GITHUB_COMMITS: ${{ github.event.commits.length }} | |
run: ./gradlew getVersion | |
- name: Publish | |
env: | |
MAVEN_USERNAME: ${{ secrets.USERNAME }} # Reference the secret\ | |
MAVEN_PASSWORD: ${{ secrets.PASSWORD }} # Reference the secret\ | |
run: ./gradlew publish -DskipTests |