github.com/Capventis/moq@v0.2.6-0.20220316100624-05dd47497214/releasing.md (about)

     1  # Releasing
     2  
     3  This tool uses Go Releaser to manage release builds.
     4  
     5  ## Setup
     6  
     7  Install Go Releaser.
     8  
     9  ```bash
    10  brew install goreleaser/tap/goreleaser
    11  ```
    12  
    13  * Make a [New personal access token on GitHub](https://github.com/settings/tokens/new) and set it as the `GITHUB_TOKEN` environment variable
    14  
    15  ## Releasing
    16  
    17  Tag the repo:
    18  
    19  ```bash
    20  $ git tag -a v0.1.0 -m "release tag."
    21  $ git push origin v0.1.0
    22  ```
    23  
    24  Then:
    25  
    26  ```bash
    27  GITHUB_TOKEN=xxx goreleaser --rm-dist
    28  ```
    29  
    30  ## Testing
    31  
    32  To test and verify changes to Go Releaser config, use the following:
    33  
    34  ```bash
    35  goreleaser --snapshot --skip-publish --rm-dist
    36  ```