GitHub Actions: run if tags are pushed

This commit is contained in:
Karl Tauber
2020-11-21 13:38:21 +01:00
parent 4d5242cd61
commit f8c7ccf064
2 changed files with 53 additions and 44 deletions

View File

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

View File

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