Skip to content

[DOCS] Build docs only when a tag is released #555

@rochacbruno

Description

@rochacbruno

Currently every time a new commit goes to master branch the webhook tells netlify to build the docs.

The problem is that docs goes out of sync with latest release version.

There are 3 ways of resolving this problem:

1 settings ignore_builds to something that will exclude untagged master

https://docs.netlify.com/configure-builds/file-based-configuration/#ignore-builds

2 branching

creating a new branch docs and update it based on the tag every time we do a release, so netlify will look to that tag only.

Changes must go on https://github.com/rochacbruno/dynaconf/blob/master/release.sh#L156

3 hack the build command

https://github.com/rochacbruno/dynaconf/blob/master/netlify.toml#L5

change the line above to first checkout to latest tag, this will cause a build every time master changes, but will build the same tag always.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions