Skip to content

doc: add cancelOnClick doc (#668) #16

doc: add cancelOnClick doc (#668)

doc: add cancelOnClick doc (#668) #16

name: Publish package
on:
release:
types: [published]
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}
- name: Build with Gradle
uses: gradle/gradle-build-action@cd3cedc781988c804f626f4cd2dc51d0bdf02a12
with:
arguments: build -x check
- name: Publish
uses: gradle/gradle-build-action@cd3cedc781988c804f626f4cd2dc51d0bdf02a12
with:
arguments: publish -Dsnapshot=${{ github.ref_type != 'tag' }}
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
OSSRH_SIGNING_KEY: ${{ secrets.OSSRH_SIGNING_KEY }}
OSSRH_SIGNING_PASSWORD: ${{ secrets.OSSRH_SIGNING_PASSWORD }}