Workflow file for this run
This file contains hidden or 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 to GitHub Packages | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
name: Build and Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Configure Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Grant execute permission for Gradle wrapper | |
run: chmod +x gradlew | |
- name: Publish package | |
env: | |
USERNAME: ${{ secrets.GITHUB_ACTOR }} | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew publish |