Skip to content

Commit

Permalink
Add explanation on how to add signing key and password to github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Kiesel <[email protected]>
  • Loading branch information
Heiko Kiesel authored and Weltraumschaf committed Jul 26, 2023
1 parent eb72b85 commit 722fb7b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions release.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@ gpg --import private.key
gpg --armor --export-secret-keys 40AA7D29EB6DE0667D7E723ADE4725604A739BAF
```

In the GitHub Secrets [1], add the output of this command to the `SIGNING_KEY` secret.
Additionally, you must add the corresponding password in as `SIGNING_PASSWORD`.
Both can be accessed in a yaml file with `${{ secrets.SIGNING_KEY }}` and `${{ secrets.SIGNING_PASSWORD }}`.
We pass both these secrets in the `env` block-

For example:

```yaml
- name: Publish to Maven Central
run: ./gradlew publish
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
...
```

#### For Password Manager

```shell
Expand Down

0 comments on commit 722fb7b

Please sign in to comment.