-
-
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.
Support java Formatting and Githuc actions
- Loading branch information
Showing
17 changed files
with
1,281 additions
and
1,236 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [vincenzopalazzo] | ||
liberapay: vincenzopalazzo | ||
custom: https://material-ui-swing.github.io/material-ui-swing-donations |
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,17 +1,17 @@ | ||
name: Java CI | ||
name: build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
#- name: Verify Java Code Style | ||
# run: ./gradlew verifyGoogleJavaFormat | ||
- name: Build with Gradle | ||
run: ./gradlew compileJava |
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,42 @@ | ||
name: Publish package to the Maven Central Repository | ||
|
||
on: | ||
release: | ||
types: [created] | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
#- name: Veryfy Java Code Style | ||
# run: ./gradlew verifyGoogleJavaFormat | ||
- name: Build with Gradle | ||
run: ./gradlew compileJava | ||
- name: Make signature file | ||
run: | | ||
echo "${{secrets.SIGNING_KEY}}" > ~/.gradle/secring.gpg.b64 | ||
base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg | ||
- name: Publish package | ||
run: ./gradlew uploadArchives -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}} -Psigning.secretKeyRingFile=$(echo ~/.gradle/secring.gpg) -PRELEASE_ENABLE=true | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} |
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,10 +1,11 @@ | ||
PROJECT_VERSION=0.0.2 | ||
#PROJECT_VERSION=0.0.2-SNAPSHOT | ||
PROJECT_VERSION=0.0.2-SNAPSHOT | ||
GROUP_ID=io.github.material-ui-swing | ||
MODULE_NAME=io.github.materialuiswing.swingsnackbar | ||
|
||
signing.keyId=JEY | ||
signing.password=PASS | ||
signing.secretKeyRingFile=PATH | ||
#signing.keyId=JEY | ||
#signing.password=PASS | ||
#signing.secretKeyRingFile=PATH | ||
|
||
sonatypeUsername=USERNAME | ||
sonatypePassword=PASS | ||
#sonatypeUsername=USERNAME | ||
#sonatypePassword=PASS |
Oops, something went wrong.