improvement github token

Signed-off-by: shaowenchen <mail@chenshaowen.com>
This commit is contained in:
shaowenchen 2020-08-21 17:50:05 +08:00
parent e63093edc8
commit a2b52c0dfc
No known key found for this signature in database
GPG Key ID: 971ADB7A66C8B6B1
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ GoReleaser is a tool for building Go projects for multiple platforms, creating a
1. Install [GoReleaser](https://goreleaser.com) using the [installation instructions](https://goreleaser.com/install/). 1. Install [GoReleaser](https://goreleaser.com) using the [installation instructions](https://goreleaser.com/install/).
1. Copy the [.goreleaser.yml file](https://github.com/hashicorp/terraform-provider-scaffolding/blob/master/.goreleaser.yml) from the [hashicorp/terraform-provider-scaffolding](https://github.com/hashicorp/terraform-provider-scaffolding) repository. 1. Copy the [.goreleaser.yml file](https://github.com/hashicorp/terraform-provider-scaffolding/blob/master/.goreleaser.yml) from the [hashicorp/terraform-provider-scaffolding](https://github.com/hashicorp/terraform-provider-scaffolding) repository.
1. Cache the password for your GPG private key with `gpg --armor --detach-sign` (see note below). 1. Cache the password for your GPG private key with `gpg --armor --detach-sign` (see note below).
1. Set your `GITHUB_TOKEN` to a [Personal Access Token](https://github.com/settings/tokens) that has the **public_repo** scope. 1. Set your `GITHUB_TOKEN` to a [Personal Access Token](https://github.com/settings/tokens/new?scopes=public_repo) that has the **public_repo** scope.
1. Tag your version with `git tag v1.2.3`. 1. Tag your version with `git tag v1.2.3`.
1. Build, sign, and upload your release with `goreleaser release --rm-dist`. 1. Build, sign, and upload your release with `goreleaser release --rm-dist`.