mirror of
https://github.com/AdrianKuta/Unbound-Drag-Drop.git
synced 2025-04-19 22:49:02 +02:00
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
release:
|
|
# We'll run this workflow when a new GitHub release is created
|
|
types: [released]
|
|
|
|
jobs:
|
|
publish:
|
|
name: Release build and publish
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: adopt
|
|
java-version: 17
|
|
|
|
- name: LS Command
|
|
run: |
|
|
echo $ANDROID_HOME
|
|
ls $ANDROID_HOME
|
|
- name: Setup Android SDK
|
|
uses: amyu/setup-android@v4
|
|
|
|
# Runs upload, and then closes & releases the repository
|
|
- name: Publish to MavenCentral
|
|
run: ./gradlew :dragdrop:publishToMavenCentral --no-configuration-cache
|
|
env:
|
|
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
|
|
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_IN_MEMORY_KEY_ID }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}
|