-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
42 changed files
with
444 additions
and
382 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: Main | ||
|
||
on: | ||
push: | ||
|
@@ -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,44 +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: Assemble | ||
run: ./gradlew assemble --stacktrace | ||
|
||
- name: Check | ||
run: ./gradlew check --stacktrace | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
|
||
- name: Set tag version | ||
run: echo ::set-env name=CIRCLE_TAG::$(echo ${GITHUB_REF:10}) | ||
- 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/') |
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
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.