From d95b1b0ec4225da752307cffe2baa296164adef6 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 21 Nov 2020 15:08:07 +0100 Subject: [PATCH] GitHub Actions: upload build artifacts --- .github/workflows/ci.yml | 23 ++++++++++++++++++----- build.gradle.kts | 2 +- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 234e1758..2eeae8fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,6 @@ on: jobs: build: runs-on: ubuntu-latest - if: false strategy: matrix: @@ -26,10 +25,10 @@ jobs: # - lastest Java version(s) java: - 1.8 - - 9 +# - 9 - 11 # LTS - - 14 - - 15 +# - 14 +# - 15 steps: - uses: actions/checkout@v2 @@ -55,11 +54,25 @@ jobs: - name: Build with Gradle run: ./gradlew build + - name: Upload artifacts + uses: actions/upload-artifact@v2 + if: matrix.java == '11' + with: + name: FlatLaf-build-artifacts + path: | + flatlaf-core/build/libs + flatlaf-demo/build/libs + flatlaf-extras/build/libs + flatlaf-intellij-themes/build/libs + flatlaf-jide-oss/build/libs + flatlaf-swingx/build/libs + snapshot: runs-on: ubuntu-latest needs: build if: | + false && github.event_name == 'push' && github.ref == 'refs/heads/github-actions' && github.repository == 'JFormDesigner/FlatLaf' @@ -94,7 +107,7 @@ jobs: release: runs-on: ubuntu-latest -# needs: build + needs: build if: | github.event_name == 'push' && startsWith( github.ref, 'refs/tags/' ) && diff --git a/build.gradle.kts b/build.gradle.kts index 29e8694f..bab1dacd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ * limitations under the License. */ -val releaseVersion = "0.0.2" +val releaseVersion = "0.44" val developmentVersion = "0.45-SNAPSHOT" version = if( java.lang.Boolean.getBoolean( "release" ) ) releaseVersion else developmentVersion