Skip to content

fixing env var

fixing env var #27

Workflow file for this run

name: Java CI with Gradle
on:
push:
branches: [ main ]
tags: [ '*' ] # Trigger on all tags
pull_request:
branches: [ main ]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish package
if: startsWith(github.ref, 'refs/tags/')
run: ./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}