From c51018b426b5d16acf5b2109c683cf62c88f5aec Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Fri, 22 Jan 2021 14:29:46 +0300 Subject: [PATCH 1/2] Regenerate readme --- README.md | 5 +++-- docs/templates/README-TEMPLATE.md | 1 + kmath-ast/README.md | 8 ++++---- kmath-core/README.md | 6 +++--- kmath-for-real/README.md | 6 +++--- kmath-nd4j/README.md | 6 +++--- 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 0899f77cc..7d2a46c92 100644 --- a/README.md +++ b/README.md @@ -235,11 +235,12 @@ Release artifacts are accessible from bintray with following configuration (see ```kotlin repositories { maven("https://dl.bintray.com/mipt-npm/kscience") + // maven("https://dl.bintray.com/mipt-npm/dev") for dev versions } dependencies { - api("kscience.kmath:kmath-core:0.2.0-dev-4") - // api("kscience.kmath:kmath-core-jvm:0.2.0-dev-4") for jvm-specific version + api("kscience.kmath:kmath-core:0.2.0-dev-5") + // api("kscience.kmath:kmath-core-jvm:0.2.0-dev-5") for jvm-specific version } ``` diff --git a/docs/templates/README-TEMPLATE.md b/docs/templates/README-TEMPLATE.md index ee1df818c..82b0c0514 100644 --- a/docs/templates/README-TEMPLATE.md +++ b/docs/templates/README-TEMPLATE.md @@ -106,6 +106,7 @@ Release artifacts are accessible from bintray with following configuration (see ```kotlin repositories { maven("https://dl.bintray.com/mipt-npm/kscience") + // maven("https://dl.bintray.com/mipt-npm/dev") for dev versions } dependencies { diff --git a/kmath-ast/README.md b/kmath-ast/README.md index 19e9ee4a9..e6200d3ef 100644 --- a/kmath-ast/README.md +++ b/kmath-ast/README.md @@ -12,7 +12,7 @@ This subproject implements the following features: > #### Artifact: > -> This module artifact: `kscience.kmath:kmath-ast:0.2.0-dev-4`. +> This module artifact: `kscience.kmath:kmath-ast:0.2.0-dev-5`. > > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-ast/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-ast/_latestVersion) > @@ -30,7 +30,7 @@ This subproject implements the following features: > } > > dependencies { -> implementation 'kscience.kmath:kmath-ast:0.2.0-dev-4' +> implementation 'kscience.kmath:kmath-ast:0.2.0-dev-5' > } > ``` > **Gradle Kotlin DSL:** @@ -44,7 +44,7 @@ This subproject implements the following features: > } > > dependencies { -> implementation("kscience.kmath:kmath-ast:0.2.0-dev-4") +> implementation("kscience.kmath:kmath-ast:0.2.0-dev-5") > } > ``` @@ -61,7 +61,7 @@ For example, the following builder: RealField.mstInField { symbol("x") + 2 }.compile() ``` -… leads to generation of bytecode, which can be decompiled to the following Java class: +… leads to generation of bytecode, which can be decompiled to the following Java class: ```java package kscience.kmath.asm.generated; diff --git a/kmath-core/README.md b/kmath-core/README.md index 7882e5252..1ee19107b 100644 --- a/kmath-core/README.md +++ b/kmath-core/README.md @@ -12,7 +12,7 @@ The core features of KMath: > #### Artifact: > -> This module artifact: `kscience.kmath:kmath-core:0.2.0-dev-4`. +> This module artifact: `kscience.kmath:kmath-core:0.2.0-dev-5`. > > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-core/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-core/_latestVersion) > @@ -30,7 +30,7 @@ The core features of KMath: > } > > dependencies { -> implementation 'kscience.kmath:kmath-core:0.2.0-dev-4' +> implementation 'kscience.kmath:kmath-core:0.2.0-dev-5' > } > ``` > **Gradle Kotlin DSL:** @@ -44,6 +44,6 @@ The core features of KMath: > } > > dependencies { -> implementation("kscience.kmath:kmath-core:0.2.0-dev-4") +> implementation("kscience.kmath:kmath-core:0.2.0-dev-5") > } > ``` diff --git a/kmath-for-real/README.md b/kmath-for-real/README.md index d6b66b7da..70308f1d5 100644 --- a/kmath-for-real/README.md +++ b/kmath-for-real/README.md @@ -7,7 +7,7 @@ > #### Artifact: > -> This module artifact: `kscience.kmath:kmath-for-real:0.2.0-dev-4`. +> This module artifact: `kscience.kmath:kmath-for-real:0.2.0-dev-5`. > > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-for-real/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-for-real/_latestVersion) > @@ -25,7 +25,7 @@ > } > > dependencies { -> implementation 'kscience.kmath:kmath-for-real:0.2.0-dev-4' +> implementation 'kscience.kmath:kmath-for-real:0.2.0-dev-5' > } > ``` > **Gradle Kotlin DSL:** @@ -39,6 +39,6 @@ > } > > dependencies { -> implementation("kscience.kmath:kmath-for-real:0.2.0-dev-4") +> implementation("kscience.kmath:kmath-for-real:0.2.0-dev-5") > } > ``` diff --git a/kmath-nd4j/README.md b/kmath-nd4j/README.md index ff4ff4542..0176c69dd 100644 --- a/kmath-nd4j/README.md +++ b/kmath-nd4j/README.md @@ -9,7 +9,7 @@ This subproject implements the following features: > #### Artifact: > -> This module artifact: `kscience.kmath:kmath-nd4j:0.2.0-dev-4`. +> This module artifact: `kscience.kmath:kmath-nd4j:0.2.0-dev-5`. > > Bintray release version: [ ![Download](https://api.bintray.com/packages/mipt-npm/kscience/kmath-nd4j/images/download.svg) ](https://bintray.com/mipt-npm/kscience/kmath-nd4j/_latestVersion) > @@ -27,7 +27,7 @@ This subproject implements the following features: > } > > dependencies { -> implementation 'kscience.kmath:kmath-nd4j:0.2.0-dev-4' +> implementation 'kscience.kmath:kmath-nd4j:0.2.0-dev-5' > } > ``` > **Gradle Kotlin DSL:** @@ -41,7 +41,7 @@ This subproject implements the following features: > } > > dependencies { -> implementation("kscience.kmath:kmath-nd4j:0.2.0-dev-4") +> implementation("kscience.kmath:kmath-nd4j:0.2.0-dev-5") > } > ``` From 8e89b5eba356abebd626c302002c915e757a56da Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sat, 30 Jan 2021 20:06:21 +0300 Subject: [PATCH 2/2] Create publish.yml Add publish workflow --- .github/workflows/publish.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..0d472b1b9 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +name: Bintray Publish + +on: + release: + types: + - created + +jobs: + build-on-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Gradle clean + run: ./gradlew clean + - name: Gradle build + run: ./gradlew build + - name: Run release task + run: ./gradlew release -PbintrayUser=${{ secrets.BINTRAY_USER }} -PbintrayApiKey=${{ secrets.BINTRAY_KEY }} + build-on-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Gradle clean + run: ./gradlew clean + - name: Gradle build + run: ./gradlew build + - name: Run release task + run: ./gradlew release -PbintrayUser=${{ secrets.BINTRAY_USER }} -PbintrayApiKey=${{ secrets.BINTRAY_KEY }}