diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a147aac..53c493e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,17 +30,17 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} restore-keys: ${{ runner.os }}-gradle- - name: Set up JDK 11 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: 11 distribution: 'adopt' - name: Check run: ./gradlew check - - name: Publish Linux + - name: Publish Linux to Maven Local if: matrix.os == 'ubuntu-latest' shell: bash run: ./gradlew publishLinuxX64PublicationToMavenLocal - - name: Publish MacOS + - name: Publish MacOS to Maven Local if: matrix.os == 'macOS-latest' shell: bash run: ./gradlew publishToMavenLocal @@ -48,10 +48,19 @@ jobs: run: | mkdir -p maven-local/release cp -r ~/.m2/repository/* maven-local/release - - name: Upload artifacts - uses: actions/upload-artifact@v2 + - name: Upload linux artifacts + if: matrix.os == 'ubuntu-latest' + uses: actions/upload-artifact@v4 + with: + name: release-linux + path: | + maven-local + !maven-local/**/maven-metadata-local.xml + - name: Upload macos artifacts + if: matrix.os == 'macOS-latest' + uses: actions/upload-artifact@v4 with: - name: release + name: release-macos path: | maven-local !maven-local/**/maven-metadata-local.xml \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 96547ad..cfcbc71 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ plugins { val currentOs = org.gradle.internal.os.OperatingSystem.current() group = "fr.acinq.bitcoin" -version = "0.20.0-SNAPSHOT" +version = "0.20.0" repositories { google()