Skip to content

Gradle Package

Gradle Package #408

---
name: Gradle Package
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: Gradle Package
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version-file: .java-version
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Gradle
uses: gradle/actions/[email protected]
with:
arguments: build
- name: Publish to GitHub Packages
uses: gradle/actions/[email protected]
with:
arguments: publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}