Update publish.yml with java distribution #4
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 Kotlin Library | |
on: [push] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 8 | |
- name: Authenticate to GitHub Packages | |
uses: fregante/setup-git-token@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Kotlin Library | |
run: ./gradlew publish |