diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index c95e94f2..b26cfd63 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -28,11 +28,14 @@ jobs: # Setup JDK and Maven - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 distribution: 'zulu' cache: maven + gpg-private-key: ${{ secrets.GPG_SECRET_KEYS }} + gpg-passphrase: GPG_PASSPHRASE + # Prepare - name: Prepare Maven Wrapper @@ -46,6 +49,13 @@ jobs: - name: Run itest run: ./mvnw integration-test failsafe:verify -Pitest -ntp -U -B -T4 + # Create a release + - name: Sign with Maven + run: ./mvnw -B -ntp -Prelease + env: + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + # - name: Upload coverage to Codecov # if: github.event_name == 'push' && github.actor != 'dependabot[bot]' # uses: codecov/codecov-action@v1.0.2 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 977ee7a6..6c708821 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -15,12 +15,12 @@ jobs: # Setup JDK and .m2/settings.xml - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 17 - server-id: ossrh distribution: 'zulu' cache: maven + server-id: ossrh server-username: OSS_CENTRAL_USERNAME # env variable for Maven Central server-password: OSS_CENTRAL_PASSWORD # env variable for Maven Central