Skip to content

Commit

Permalink
GitHub Actions fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nshtengauer committed Dec 7, 2024
1 parent c7fc461 commit 49e3f34
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 83 deletions.
61 changes: 0 additions & 61 deletions .github/workflows/compilation.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/maven_publish.yml
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 }}
22 changes: 0 additions & 22 deletions .github/workflows/maven_publishing.yml

This file was deleted.

0 comments on commit 49e3f34

Please sign in to comment.