forked from BigBadaboom/androidsvg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup publish.yaml and publish-helper.gradle
- Loading branch information
1 parent
1772f50
commit c59c88b
Showing
2 changed files
with
53 additions
and
0 deletions.
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,44 @@ | ||
name: Build & Publish | ||
|
||
on: | ||
# push: | ||
# branches: [ master ] | ||
workflow_dispatch: | ||
|
||
env: | ||
GPG_KEY: ${{ secrets.MAVEN_GPG_BUILDER_PRIVATE_KEY }} | ||
GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_BUILDER_PASSPHRASE }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: Build Release configuration | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: assembleRelease | ||
|
||
- name: Publish to GitHub Packages | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: publishReleasePublicationToGitHubPackagesRepository | ||
env: | ||
USERNAME: $GITHUB_ACTOR | ||
PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish to Maven Central | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: publishReleasePublicationToOSSRHRepository | ||
env: | ||
USERNAME: ${{ secrets.MAVEN_OSSRH_USERNAME }} | ||
PASSWORD: ${{ secrets.MAVEN_OSSRH_TOKEN }} |
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,9 @@ | ||
task androidJavadocsJar(type: Jar) { | ||
archiveClassifier.set('javadoc') | ||
// from dokkaJavadoc.outputDirectory | ||
} | ||
|
||
task androidSourcesJar(type: Jar) { | ||
archiveClassifier.set('sources') | ||
// from android.sourceSets.main.java.srcDirs | ||
} |