Skip to content

Commit

Permalink
resolves #61, updating documentation for use with self-hosted GitHub … (
Browse files Browse the repository at this point in the history
#62)

* resolves #61, updating documentation for use with self-hosted GitHub Enterprise

* Reformulate selfhosted message

---------

Co-authored-by: Whitehead, Brandon <[email protected]>
Co-authored-by: Lars Gohr <[email protected]>
  • Loading branch information
3 people authored Oct 30, 2024
1 parent 729911f commit 424294a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,21 @@ permissions:
contents: write
```

to the concrete job creating the release. For more details see the [documentation on token permissions.](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token)
to the concrete job creating the release. For more details see the [documentation on token permissions.](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token)

### Use with GitHub Enterprise

To publish your release to self-hosted GitHub Enterprise, include `GH_ENTERPRISE_TOKEN` and `GH_HOST` as environment variables.
For example:

```yaml
- name: Create Release
if: ${{ github.event.inputs.create_release }}
uses: elgohr/Github-Release-Action@v5
env:
GH_ENTERPRISE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_HOST: yourgithub.company.com
with:
title: "New release"
tag: "v1.0.1"
```

0 comments on commit 424294a

Please sign in to comment.