Skip to content

Commit

Permalink
Add publish api task
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Aug 21, 2024
1 parent ab242ee commit a4b01e9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/publish-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: publish-natives-macos

on:
push:
branches: [ "master" ]
paths:
- '.github/workflows/publish-api.yml' # when new targets are added
- 'build.gradle.kts' # when the root build script changes
- 'api' # when api source is changed

concurrency:
group: "pub-api"
cancel-in-progress: true

jobs:
publish:
name: Publish API dependency
environment: MavenRelease
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Publish
env:
ORG_GRADLE_PROJECT_ossrhUser: ${{ secrets.OSSRH_USER }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_stagingProfile: ${{ secrets.STAGING_PROFILE_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_KEYID }}
run: |
chmod u+x gradlew
./gradlew --console plain --stacktrace -Ptarget=x86_64-unknown-linux-gnu api:publishToSonatype closeAndReleaseStagingRepository
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
image: ubuntu:16.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Install Essentials
run: |
apt-get update -y
Expand Down

0 comments on commit a4b01e9

Please sign in to comment.