mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
GitHub Actions: run if tags are pushed
This commit is contained in:
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -4,9 +4,13 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [github-actions]
|
branches:
|
||||||
|
- github-actions
|
||||||
|
tags:
|
||||||
|
- '[0-9]*'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [github-actions]
|
branches:
|
||||||
|
- github-actions
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -18,8 +22,13 @@ jobs:
|
|||||||
# - Java 1.8 (minimum requirement)
|
# - Java 1.8 (minimum requirement)
|
||||||
# - Java 9 (first version with JPMS)
|
# - Java 9 (first version with JPMS)
|
||||||
# - Java LTS versions (11, 17, ...)
|
# - Java LTS versions (11, 17, ...)
|
||||||
# - last two Java versions
|
# - lastest Java version(s)
|
||||||
java: [1.8, 9, 11, 14, 15]
|
java:
|
||||||
|
- 1.8
|
||||||
|
- 9
|
||||||
|
- 14
|
||||||
|
- 15
|
||||||
|
- 11 # always last because used to build snapshots and releases
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ stages:
|
|||||||
if: branch = disabled
|
if: branch = disabled
|
||||||
- name: snapshot
|
- name: snapshot
|
||||||
if: branch = disabled AND type IN (push) AND tag IS blank
|
if: branch = disabled AND type IN (push) AND tag IS blank
|
||||||
- name: release
|
# - name: release
|
||||||
if: type IN (push) AND tag IS present
|
# if: type IN (push) AND tag IS present
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
|||||||
Reference in New Issue
Block a user