-
-
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.
- Loading branch information
1 parent
533aa2c
commit b6ca84c
Showing
10 changed files
with
190 additions
and
142 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
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 |
---|---|---|
@@ -1,44 +1,45 @@ | ||
# Workflow for Android CI release | ||
|
||
name: Publish to Artifactory | ||
name: Publish to Sonatype | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
name: Release build and publish | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Get version name | ||
id: get_version | ||
uses: battila7/get-version-action@v2 | ||
- name: Checkout code | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false # Avoids messing up PagesDeployAction | ||
- name: Configure JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Make gradlew executable | ||
run: chmod +x gradlew | ||
- name: Prepare publishing environment | ||
run: mkdir ~/.gradle && echo "$ARTIFACTORY_CREDENTIALS" > ./adobecolor/gradle.properties | ||
env: | ||
ARTIFACTORY_CREDENTIALS: ${{ secrets.ARTIFACTORY_CREDENTIALS }} | ||
- name: Publish Dev | ||
if: ${{ contains(steps.get_version.outputs.version, 'alpha') }} | ||
run: ./gradlew adobecolor:assemble dokkaHtml | ||
- name: Publish | ||
if: ${{ !contains(steps.get_version.outputs.version, 'alpha') }} | ||
run: ./gradlew adobecolor:assemble -PparamEnv=RELEASE dokkaHtml | ||
- name: Deploy Documentation | ||
uses: JamesIves/[email protected] | ||
run: chmod +x ./gradlew | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: adobecolor/build/dokka/html | ||
TARGET_FOLDER: docs | ||
CLEAN: true | ||
distribution: zulu | ||
java-version: 11 | ||
|
||
- name: Prepare environment | ||
env: | ||
SONATYPE_GPG_FILE_CONTENTS: ${{ secrets.SONATYPE_GPG_FILE_CONTENTS }} | ||
SONATYPE_GPG_FILE: ${{ secrets.SONATYPE_GPG_FILE }} | ||
run: | | ||
git fetch --unshallow | ||
sudo bash -c "echo '$SONATYPE_GPG_FILE_CONTENTS' | base64 -d > '$SONATYPE_GPG_FILE'" | ||
- name: Release build | ||
run: ./gradlew adobecolor:assembleRelease | ||
|
||
- name: Publish to MavenCentral | ||
run: ./gradlew adobecolor:publishReleasePublicationToSonatypeRepository -Plibrary_only --no-configure-on-demand --no-parallel dokkaHtml | ||
env: | ||
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | ||
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | ||
SONATYPE_GPG_KEY: ${{ secrets.SONATYPE_GPG_KEY }} | ||
SONATYPE_GPG_PASS: ${{ secrets.SONATYPE_GPG_PASS }} | ||
SONATYPE_GPG_FILE: ${{ secrets.SONATYPE_GPG_FILE }} | ||
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} |
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 |
---|---|---|
|
@@ -13,4 +13,3 @@ | |
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
adobecolor/gradle.properties |
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
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
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,8 @@ | ||
# | ||
# Copyright © Marc Auberer 2021. All rights reserved | ||
# | ||
|
||
POM_NAME=Adobe Color Tool | ||
POM_DESCRIPTION=Android library for importing / exporting colors as ACO & ASE files. | ||
POM_ARTIFACT_ID=adobecolortool | ||
POM_PACKAGING=aar |
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
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
Oops, something went wrong.