GitHub Actions: upload build artifacts

This commit is contained in:
Karl Tauber
2020-11-21 15:08:07 +01:00
parent d16a3c117b
commit d95b1b0ec4
2 changed files with 19 additions and 6 deletions

View File

@@ -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/' ) &&

View File

@@ -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