@@ -19,8 +19,9 @@ will download the new version and replace the existing application files with th
19
19
This means your application's builds need to be hosted online. NativePHP will automatically upload your application for
20
20
you. After configuring the updater, simply use the [ ` php artisan native:publish ` ] ( /docs/publishing/publishing ) command.
21
21
22
- The updater supports two providers:
22
+ The updater supports three providers:
23
23
24
+ - GitHub Releases (` github ` )
24
25
- Amazon S3 (` s3 ` )
25
26
- DigitalOcean Spaces (` spaces ` )
26
27
@@ -38,6 +39,17 @@ The default updater configuration looks like this:
38
39
'default' => env('NATIVEPHP_UPDATER_PROVIDER', 'spaces'),
39
40
40
41
'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
+
41
53
's3' => [
42
54
'driver' => 's3',
43
55
'key' => env('AWS_ACCESS_KEY_ID'),
0 commit comments