-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
ab242ee
commit a4b01e9
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
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,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 |
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