-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Kotlin 1.4.30 and Maven Central for publishing (#79)
- Loading branch information
Showing
24 changed files
with
350 additions
and
269 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,12 +10,16 @@ on: | |
branches: | ||
- main | ||
|
||
env: | ||
CI: "true" | ||
|
||
jobs: | ||
build: | ||
validation: | ||
name: "Validation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: gradle/wrapper-validation-action@v1 | ||
|
||
build: | ||
needs: [validation] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -26,41 +30,25 @@ jobs: | |
with: | ||
java-version: 1.8 | ||
|
||
- name: gradle cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: gradle wrapper cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/wrapper/dists | ||
key: ${{ runner.os }}-gradlewrapper | ||
- name: Build with Gradle | ||
run: ./gradlew assemble check --stacktrace | ||
|
||
- name: NVD CVE cache | ||
uses: actions/cache@v1 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1.0.6 | ||
with: | ||
path: ~/.gradle/dependency-check-data | ||
key: ${{ runner.os }}-dependency-check-data | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew --build-cache assemble check --stacktrace | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
|
||
- name: Set tag version | ||
run: echo "CIRCLE_TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV | ||
- name: Prepare tag properties | ||
run: | | ||
echo "${{secrets.GPG_SIGNING_SECRET_KEY_RING_FILE_BASE64}}" > ~/.gradle/sonatype-appmattus-keys.gpg.b64 | ||
base64 -d ~/.gradle/sonatype-appmattus-keys.gpg.b64 > ~/.gradle/sonatype-appmattus-keys.gpg | ||
echo "${{secrets.GPG_GRADLE_PROPERTIES}}" > ~/.gradle/gradle.properties | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
- name: Upload tag | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
run: ./gradlew bintrayUpload | ||
run: ./gradlew publish --no-daemon --no-parallel -Psigning.secretKeyRingFile=$(echo ~/.gradle/sonatype-appmattus-keys.gpg) | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
- name: Close and release tag | ||
run: ./gradlew closeAndReleaseRepository | ||
if: startsWith(github.ref, 'refs/tags/') |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.