GitHub tag push doesn't trigger build

stefan.helfrich's Avatar

stefan.helfrich

05 Nov, 2015 06:25 AM

I trying to get my build artifacts released as GitHub release, which should be triggered by a tag push. However, no builds are triggered with my configuration on tag push (skip_tags is not included in the config, so it should be disabled by default?)

branches:
  only:
    - appveyor
  except:
    - master
    - develop
...
deploy:
  release: $(appveyor_repo_tag)
  description: 'Release description'
  provider: GitHub
  auth_token:
    secure: ...
  artifact: thin-jar
  draft: true
  prerelease: false
  on:
    appveyor_repo_tag: true        # deploy on tag push only

The webhook has delivered a push event with the following payload..

{
  "ref": "refs/tags/vX.Y.3",
  "before": "0000000000000000000000000000000000000000",
  "after": ...,
  "created": true,
  ...
  1. Support Staff 1 Posted by Feodor Fitsner on 05 Nov, 2015 06:52 AM

    Feodor Fitsner's Avatar

    I don't see the whole webhook payload, but if base_branch is not set AppVeyor sets it to tag name, so basically build doesn't come through branches filter. Try adding regex to allowed branches:

    branches:
      only:
        - appveyor
        - /v\d\.\d\.\d/
      except:
        - master
        - develop
    ...
    
  2. 2 Posted by stefan.helfrich on 05 Nov, 2015 07:01 AM

    stefan.helfrich's Avatar

    Do you by chance mean base_ref instead of base_branch?

    "base_ref": null,

    Since I haven't changed any settings on the repo, I imagine this to be rather default case. Maybe, a small remark should be added to the documentation?

  3. 3 Posted by stefan.helfrich on 05 Nov, 2015 07:35 AM

    stefan.helfrich's Avatar

    Thank you, Feodor! This has solved the issued.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac