Artifact signing (#2)

This commit is contained in:
Gavin Cabbage
2019-09-26 08:17:18 -04:00
committed by CrazyMax
parent bb450e4e69
commit be0c56834b
4 changed files with 38 additions and 0 deletions
+15
View File
@@ -37,6 +37,7 @@ jobs:
with:
version: latest
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
@@ -51,6 +52,20 @@ Following inputs can be used as `step.with` keys
|---------------|---------|-----------|------------------------------------------|
| `version` | String | `latest` | GoReleaser version. Example: `v0.117.0` |
| `args` | String | | Arguments to pass to GoReleaser |
| `key` | String | | Private key to import
### Signing
If signing is enabled in your GoReleaser configuration, populate the `key` input with your private key
and reference the key in your signing configuration, e.g.
```
signs:
- artifacts: checksum
args: ["--batch", "-u", "<key id, fingerprint, email, ...>", "--output", "${signature}", "--detach-sign", "${artifact}"]
```
This feature is currently only compatible when using the default `gpg` command and a private key without a passphrase.
## 🤝 How can I help ?