Skip to content

41 sevensegment display #200

41 sevensegment display

41 sevensegment display #200

name: Build and Release Library
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-library:
runs-on: ubuntu-latest
steps:
- 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:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Change wrapper permissions
run: chmod +x pi4micronaut-utils/gradlew
- name: Publish Library
working-directory: pi4micronaut-utils
env:
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