maps-kt/.github/workflows/publish.yml

28 lines
696 B
YAML
Raw Normal View History

2024-06-19 18:14:59 +03:00
name: Gradle publish
on:
workflow_dispatch:
release:
types: [ created ]
jobs:
publish:
environment:
name: publish
runs-on: ubuntu-latest
steps:
2024-06-19 18:23:36 +03:00
- uses: actions/checkout@v4.1.7
- name: Set up JDK 17
uses: actions/setup-java@v4.2.1
2024-06-19 18:14:59 +03:00
with:
2024-06-19 18:23:36 +03:00
java-version: 17
2024-06-19 18:14:59 +03:00
distribution: liberica
- name: execute build
2024-06-19 18:23:36 +03:00
uses: gradle/gradle-build-action@v3.4.2
2024-06-19 18:14:59 +03:00
- 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 }}