Skip to content

setup publish shapshot workflow #1

setup publish shapshot workflow

setup publish shapshot workflow #1

name: Publish SNAPSHOT
on:
push:
branches:
- main
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
env:
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
- name: Test
run: ./gradlew test
- name: Publish
run: ./gradlew publish
env:
GITHUB_PKG_USER: jsoizo
GITHUB_PKG_TOKEN: ${{ secrets.GITHUB_TOKEN }}