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:
|
||||
push:
|
||||
branches: [github-actions]
|
||||
branches:
|
||||
- github-actions
|
||||
tags:
|
||||
- '[0-9]*'
|
||||
pull_request:
|
||||
branches: [github-actions]
|
||||
branches:
|
||||
- github-actions
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -18,8 +22,13 @@ jobs:
|
||||
# - Java 1.8 (minimum requirement)
|
||||
# - Java 9 (first version with JPMS)
|
||||
# - Java LTS versions (11, 17, ...)
|
||||
# - last two Java versions
|
||||
java: [1.8, 9, 11, 14, 15]
|
||||
# - lastest Java version(s)
|
||||
java:
|
||||
- 1.8
|
||||
- 9
|
||||
- 14
|
||||
- 15
|
||||
- 11 # always last because used to build snapshots and releases
|
||||
|
||||
steps:
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ stages:
|
||||
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
|
||||
# - name: release
|
||||
# if: type IN (push) AND tag IS present
|
||||
|
||||
jobs:
|
||||
include:
|
||||
|
||||
Reference in New Issue
Block a user