gradle workflow fixed #8
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 main | |
description: Builds than main branch, and then deploys SNAPSHOT versions to GitHub Packages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4.2.2 | |
- name: Setup Java | |
uses: actions/setup-java@v4.6.0 | |
with: | |
distribution: 'temurin' | |
java-version: 23 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4.2.2 | |
- name: Build | |
run: ./gradlew build kotlinSourcesJar javadocJar sign publish | |
env: | |
ORG_GRADLE_PROJECT_githubActor: ${{ secrets.GITHUBACTOR }} | |
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUBTOKEN }} |