-
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.
Drop CircleCI and grab GitHub Actions (#7)
- Loading branch information
Showing
10 changed files
with
170 additions
and
115 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* text eol=lf | ||
*.jar binary |
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,22 @@ | ||
name: changelogPrint | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: changelogPrint | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: jdk 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'temurin' | ||
- name: gradle caching | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
- run: ./gradlew changelogPrint |
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,40 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
jre: [17] | ||
os: [ubuntu-latest, windows-latest] | ||
include: | ||
- jre: 11 | ||
os: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install JDK ${{ matrix.jre }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "temurin" | ||
java-version: ${{ matrix.jre }} | ||
- name: gradle caching | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
- name: git fetch origin main | ||
run: git fetch origin main | ||
- name: gradlew build | ||
run: ./gradlew build | ||
- name: junit result | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() # always run even if the previous step fails | ||
with: | ||
check_name: JUnit ${{ matrix.jre }} ${{ matrix.os }} | ||
report_paths: '*/build/test-results/*/TEST-*.xml' |
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,51 @@ | ||
# GH_TOKEN | ||
# NEXUS_USER | ||
# NEXUS_PASS64 (base64 NOTE: `base64` and `openssl base64` failed, had to use Java | ||
# byte[] data = "{{password}}".getBytes(StandardCharsets.UTF_8); | ||
# String encoded = new String(Base64.getEncoder().encode(data), StandardCharsets.UTF_8); | ||
# System.out.println(encoded); | ||
# GPG_PASSPHRASE | ||
# GPG_KEY64 (base64) | ||
# gpg --export-secret-keys --armor KEY_ID | openssl base64 | pbcopy | ||
# GRADLE_KEY | ||
# GRADLE_SECRET | ||
|
||
name: deploy | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
to_publish: | ||
description: 'What to publish' | ||
required: true | ||
default: 'all' | ||
type: choice | ||
options: | ||
- all | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: deploy | ||
env: | ||
gh_token: ${{ secrets.GH_TOKEN }} | ||
ORG_GRADLE_PROJECT_nexus_user: ${{ secrets.NEXUS_USER }} | ||
ORG_GRADLE_PROJECT_nexus_pass64: ${{ secrets.NEXUS_PASS64 }} | ||
ORG_GRADLE_PROJECT_gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
ORG_GRADLE_PROJECT_gpg_key64: ${{ secrets.GPG_KEY64 }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: jdk 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'temurin' | ||
- name: gradle caching | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
- name: git fetch origin main | ||
run: git fetch origin main | ||
- name: publish all | ||
if: "${{ github.event.inputs.to_publish == 'all' }}" | ||
run: | | ||
./gradlew :changelogPush -Prelease=true -Penable_publishing=true -Pgradle.publish.key=${{ secrets.GRADLE_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_SECRET }} --stacktrace --warning-mode all |
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,23 @@ | ||
name: "Validate Gradle Wrapper" | ||
on: | ||
push: | ||
paths: | ||
- 'gradlew' | ||
- 'gradlew.bat' | ||
- 'gradle/wrapper/' | ||
pull_request: | ||
paths: | ||
- 'gradlew' | ||
- 'gradlew.bat' | ||
- 'gradle/wrapper/' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
validation: | ||
name: "Validation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: gradle/wrapper-validation-action@v1 |
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