Skip to content

Try deployment on one machine #54

Try deployment on one machine

Try deployment on one machine #54

Workflow file for this run

name: Deployment
on:
push:
tags: [ '[0-9]+.[0-9]+.[0-9]+*' ]
workflow_dispatch:
jobs:
publish:
if: >
github.repository == 'mv-gh/lemmybackwardscompatibleapi' &&
(
startsWith(github.ref, 'refs/tags/') ||
(github.event_name == 'workflow_dispatch' && github.actor == 'mv-gh')
)
runs-on: macos-latest
environment: publish
env:
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }}
steps:
- uses: actions/checkout@v6
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
- name: build
run: ./gradlew build --no-daemon
- name: publish
run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache --no-daemon --stacktrace