Skip to content

Commit d66ac61

Browse files
committed
docs: add documentation on using GitHub Releases for updates
1 parent 55b311a commit d66ac61

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

resources/views/docs/1/publishing/updating.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ will download the new version and replace the existing application files with th
1919
This means your application's builds need to be hosted online. NativePHP will automatically upload your application for
2020
you. After configuring the updater, simply use the [`php artisan native:publish`](/docs/publishing/publishing) command.
2121

22-
The updater supports two providers:
22+
The updater supports three providers:
2323

24+
- GitHub Releases (`github`)
2425
- Amazon S3 (`s3`)
2526
- DigitalOcean Spaces (`spaces`)
2627

@@ -38,6 +39,17 @@ The default updater configuration looks like this:
3839
'default' => env('NATIVEPHP_UPDATER_PROVIDER', 'spaces'),
3940

4041
'providers' => [
42+
'github' => [
43+
'driver' => 'github',
44+
'repo' => env('GITHUB_REPO'),
45+
'owner' => env('GITHUB_OWNER'),
46+
'token' => env('GITHUB_TOKEN'),
47+
'vPrefixedTagName' => env('GITHUB_V_PREFIXED_TAG_NAME', true),
48+
'private' => env('GITHUB_PRIVATE', false),
49+
'channel' => env('GITHUB_CHANNEL', 'latest'),
50+
'releaseType' => env('GITHUB_RELEASE_TYPE', 'draft'),
51+
],
52+
4153
's3' => [
4254
'driver' => 's3',
4355
'key' => env('AWS_ACCESS_KEY_ID'),

0 commit comments

Comments
 (0)