Skip to content

Commit

Permalink
ADD: publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoJiang committed Dec 4, 2022
1 parent f44eff0 commit 22bea92
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish

on:
push:
tags:
- '*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
kace-publish:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2

- name: Set up JDK 8
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'

- name: Build & Publish Kace plugin to Maven Central
run: chmod +x ./publish.sh | ./publish.sh
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 }}
Empty file modified gradlew
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./gradlew publishAllPublicationsToMavenCentral

0 comments on commit 22bea92

Please sign in to comment.