-
Notifications
You must be signed in to change notification settings - Fork 7
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
163 changed files
with
374 additions
and
352 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,51 +1,51 @@ | ||
name: Build and Release Library | ||
on: | ||
on: | ||
push: | ||
branches: | ||
-master | ||
- main | ||
pull_request: | ||
branches: | ||
-master | ||
branches: | ||
- main | ||
jobs: | ||
build-library: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
- name: Change wrapper permissions | ||
run: chmod +x micronautpi4j-utils/gradlew | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build | ||
build-root-directory: micronautpi4j-utils/ | ||
- name: Execute Gradle build | ||
working-directory: micronautpi4j-utils | ||
run: ./gradlew shadowJar | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: Change wrapper permissions | ||
run: chmod +x pi4micronaut-utils/gradlew | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build | ||
build-root-directory: pi4micronaut-utils/ | ||
- name: Execute Gradle build | ||
working-directory: pi4micronaut-utils | ||
run: ./gradlew shadowJar | ||
publish-jar: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
needs: build-library | ||
steps: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
needs: build-library | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
java-version: '17' | ||
distribution: 'adopt' | ||
cache: 'gradle' | ||
- name: Change wrapper permissions | ||
run: chmod +x micronautpi4j-utils/gradlew | ||
run: chmod +x pi4micronaut-utils/gradlew | ||
- name: Publish Library | ||
working-directory: micronautpi4j-utils | ||
working-directory: pi4micronaut-utils | ||
env: | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }} | ||
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --no-daemon | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
GPG_KEY: ${{ secrets.GPG_KEY }} | ||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} | ||
run: ./gradlew clean publish --info |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file removed
0
micronautpi4j-utils/src/test/java/com/opensourcewithslu/Micronautpi4jUtilsTest.java
Empty file.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.