Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 424294a

Browse files
bwhitehead0bwhiteh4elgohr
authored
resolves #61, updating documentation for use with self-hosted GitHub … (#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]>
1 parent 729911f commit 424294a

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,21 @@ permissions:
5353
contents: write
5454
```
5555

56-
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)
56+
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)
57+
58+
### Use with GitHub Enterprise
59+
60+
To publish your release to self-hosted GitHub Enterprise, include `GH_ENTERPRISE_TOKEN` and `GH_HOST` as environment variables.
61+
For example:
62+
63+
```yaml
64+
- name: Create Release
65+
if: ${{ github.event.inputs.create_release }}
66+
uses: elgohr/Github-Release-Action@v5
67+
env:
68+
GH_ENTERPRISE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
GH_HOST: yourgithub.company.com
70+
with:
71+
title: "New release"
72+
tag: "v1.0.1"
73+
```

0 commit comments

Comments
 (0)