github.com/ahmet2mir/goreleaser@v0.180.3-0.20210927151101-8e5ee5a9b8c5/www/docs/customization/nightly.md (about)

     1  ---
     2  title: Nightly
     3  ---
     4  
     5  !!! success "GoReleaser Pro"
     6      The nightly build feature is a [GoReleaser Pro feature](/pro/).
     7  
     8  Whether if you need beta builds or a rolling-release system, the nightly builds feature gets you covered.
     9  
    10  To enable it, you must use the `--nightly` flag in the [`goreleaser release` command](/cmd/goreleaser_release/).
    11  
    12  You also have some customization options available:
    13  
    14  ```yaml
    15  # .goreleaser.yml
    16  nightly:
    17    # Allows you to change the version of the generated nightly release.
    18    #
    19    # Note that some pipes require this to be semantic version compliant (nfpm, for example).
    20    #
    21    # Default is `{{ incpatch .Version }}-{{ .ShortCommit }}-dev`.
    22    name_template: '{{ incpatch .Version }}-devel'
    23  ```
    24  
    25  ## How it works
    26  
    27  When you run GoReleaser with `--nightly`, it will set the `Version` template variable to the evaluation of `nightly.name_template`.
    28  This means that if you use `{{ .Version }}` on your name templates, you'll get the nightly version.
    29  
    30  !!! tip
    31      Learn more about the [name template engine](/customization/templates/).
    32  
    33  ## What is skipped when using `--nightly`?
    34  
    35  - Go mod proxying;
    36  - GitHub/GitLab/Gitea releases;
    37  - Homebrew taps;
    38  - Scoop manifests;
    39  - Milestone closing;
    40  - All announcers;
    41  
    42  Everything else is executed normally. Just make sure to use the `Version` template variable instead of `Tag`.
    43  You can also check if its a nightly build inside a template with:
    44  
    45  ```
    46  {{ if .IsNightly }}something{{ else }}something else{{ end }}
    47  ```
    48  
    49  !!! info "Maybe you are looking for something else?"
    50      - If just want to build the binaries, and no packages at all, check the [`goreleaser build` command](/cmd/goreleaser_build/);
    51      - If you actually want to create a local "snapshot" build, check out the [snapshots documentation](/customization/snapshots/).