mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
GitHub Actions: build on all branches; produce snapshots only on master branch; disable Travis CI
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -5,12 +5,12 @@ name: CI
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- github-actions
|
||||
- '*'
|
||||
tags:
|
||||
- '[0-9]*'
|
||||
pull_request:
|
||||
branches:
|
||||
- github-actions
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -24,11 +24,11 @@ jobs:
|
||||
# - Java LTS versions (11, 17, ...)
|
||||
# - lastest Java version(s)
|
||||
java:
|
||||
# - 1.8
|
||||
# - 9
|
||||
- 1.8
|
||||
- 9
|
||||
- 11 # LTS
|
||||
# - 14
|
||||
# - 15
|
||||
- 14
|
||||
- 15
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -74,9 +74,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: |
|
||||
false &&
|
||||
github.event_name == 'push' &&
|
||||
github.ref == 'refs/heads/github-actions' &&
|
||||
github.ref == 'refs/heads/master' &&
|
||||
github.repository == 'JFormDesigner/FlatLaf'
|
||||
|
||||
steps:
|
||||
|
||||
41
.travis.yml
41
.travis.yml
@@ -1,41 +0,0 @@
|
||||
language: java
|
||||
sudo: false
|
||||
|
||||
jdk:
|
||||
- openjdk8
|
||||
- openjdk9
|
||||
- openjdk11
|
||||
- openjdk14
|
||||
- openjdk15
|
||||
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle/caches/
|
||||
- $HOME/.gradle/wrapper/
|
||||
|
||||
before_install:
|
||||
- ./gradlew --version
|
||||
- java -version
|
||||
|
||||
stages:
|
||||
- name: test
|
||||
if: branch = disabled
|
||||
- name: snapshot
|
||||
if: branch = disabled AND type IN (push) AND tag IS blank
|
||||
# - name: release
|
||||
# if: type IN (push) AND tag IS present
|
||||
|
||||
jobs:
|
||||
include:
|
||||
# publish snapshot to oss.jfrog.org
|
||||
- stage: snapshot
|
||||
jdk: openjdk11
|
||||
script: ./gradlew artifactoryPublish
|
||||
|
||||
# release a new stable version to bintray
|
||||
- stage: release
|
||||
jdk: openjdk11
|
||||
script: ./gradlew bintrayUpload -Drelease=true
|
||||
Reference in New Issue
Block a user