-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nshtengauer
committed
Dec 7, 2024
1 parent
c7fc461
commit 49e3f34
Showing
3 changed files
with
64 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Maven Central publishing | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Importing GPG key" | ||
run: | | ||
sudo gpg --batch --passphrase ${{ secrets.GPG_PASSPHRASE }} --import gradle/secring.gpg | ||
- name: "Prepare" | ||
run: | | ||
chmod +x ./gradlew | ||
- name: "Building and publishing" | ||
run: > | ||
./gradlew publish | ||
-Dorg.gradle.project.signing.password=${{ secrets.GPG_PASSPHRASE }} | ||
-Dorg.gradle.project.signing.secretKeyRingFile=${{ github.workspace }}/gradle/secring.gpg | ||
-Dorg.gradle.project.ossrhUsername=${{ secrets.SONATYPE_USERNAME }} | ||
-Dorg.gradle.project.ossrhPassword=${{ secrets.SONATYPE_PASSWORD }} | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Importing GPG key" | ||
run: | | ||
gpg --batch --passphrase ${{ secrets.GPG_PASSPHRASE }} --import gradle/secring.gpg | ||
- name: "Building and publishing" | ||
run: > | ||
./gradlew publishNatives | ||
"-Dorg.gradle.project.signing.password=${{ secrets.GPG_PASSPHRASE }}" | ||
"-Dorg.gradle.project.signing.secretKeyRingFile=${{ github.workspace }}/gradle/secring.gpg" | ||
"-Dorg.gradle.project.ossrhUsername=${{ secrets.SONATYPE_USERNAME }}" | ||
"-Dorg.gradle.project.ossrhPassword=${{ secrets.SONATYPE_PASSWORD }}" | ||
macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: "Importing GPG key" | ||
run: | | ||
gpg --batch --passphrase ${{ secrets.GPG_PASSPHRASE }} --import gradle/secring.gpg | ||
- name: "Prepare" | ||
run: | | ||
chmod +x ./gradlew | ||
- name: "Building and publishing" | ||
run: > | ||
./gradlew publishNatives | ||
-Dorg.gradle.project.signing.password=${{ secrets.GPG_PASSPHRASE }} | ||
-Dorg.gradle.project.signing.secretKeyRingFile=${{ github.workspace }}/gradle/secring.gpg | ||
-Dorg.gradle.project.ossrhUsername=${{ secrets.SONATYPE_USERNAME }} | ||
-Dorg.gradle.project.ossrhPassword=${{ secrets.SONATYPE_PASSWORD }} |
This file was deleted.
Oops, something went wrong.