on GH actions conditions

3 views
Skip to first unread message

Adrian Cole

unread,
Dec 4, 2020, 6:29:56 PM12/4/20
to zipki...@googlegroups.com
Just wanted to pass along some learning. When doing a release
condition in travis, take out anything that talks about a branch and a
tag at the same time, unless you want to deploy latest commit along
with the tag (ex snapshot+1.2.3)

on:
push:
tags: '[0-9]+.[0-9]+.[0-9]+**' # Ex. 8.272.10 or 15.0.1_p9
branches: master

jobs:
deploy:


So, for example, in ruby or the JDKs etc, just take out the branches
part and leave it as a tag condition only. There's no way to constrain
both tag and branch iotw (that I'm aware of). Like so..

on:
push:
tags: '[0-9]+.[0-9]+.[0-9]+**' # Ex. 8.272.10 or 15.0.1_p9

jobs:
deploy:


Hope this helps!
-a
Reply all
Reply to author
Forward
0 new messages