allow bearer token to be null #6
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: [ main ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 18 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Publish with Gradle | |
run: ./gradlew keyforge:shadowJar keyforge:publish | |
env: | |
MAVEN_NAME: ${{ secrets.MAVEN_NAME }} # token name | |
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }} # token secret (password) |