28 lines
696 B
YAML
28 lines
696 B
YAML
name: Gradle publish
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [ created ]
|
|
|
|
jobs:
|
|
publish:
|
|
environment:
|
|
name: publish
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.7
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4.2.1
|
|
with:
|
|
java-version: 17
|
|
distribution: liberica
|
|
- name: execute build
|
|
uses: gradle/gradle-build-action@v3.4.2
|
|
- name: Publish
|
|
shell: bash
|
|
run: >
|
|
./gradlew release --no-daemon --build-cache -Ppublishing.enabled=true
|
|
-Ppublishing.space.user=${{ secrets.SPACE_APP_ID }}
|
|
-Ppublishing.space.token=${{ secrets.SPACE_APP_SECRET }}
|