feat: add debug and try-catch for checks #16
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: Publish project to Maven repository | |
# OR, publish per each commit | |
on: | |
push: | |
branches: [ master, develop ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Publish with Gradle | |
id: publish | |
run: ./gradlew build publish | |
env: | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} # token name | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} # token secret (password) | |