Skip to content

Github Actions CI/CD pipeline (branch -> master -> release tag) #26115

Answered by juulSme
tlfbrito asked this question in Actions
Discussion options

You must be logged in to vote

9/6/2019: This is no longer relevant - it was a bug that has been fixed, see responses down below.


I’ve had the same issue, it’s a pain in the ass. Github Actions is quite beta still, just wait until you want to get a service container working. Anyway, I’ve found the solution to your current problem. You need to exclude all tags from builds you want triggered on branch(es) only. For example:

name: CI / Automated testing
on:
  push:
    tags:
      - '!refs/tags/*'

…triggers on all branches for my CI.

For my autodeploy-master-to-staging, I use this:

name: Autodeploy
on:
  push:
    branches:
      - master
    tags:
      - '!refs/tags/*'

And finally, for my deploy-a-tagged-and-publishe…

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants