Skip to content

Commit 99386bf

Browse files
committed
feat: adds the required config for using GitHub as an updater provider
1 parent 03ce978 commit 99386bf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

config/nativephp.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,22 @@
6666

6767
/**
6868
* The updater provider to use.
69-
* Supported: "s3", "spaces"
69+
* Supported: "github", "s3", "spaces"
7070
*/
7171
'default' => env('NATIVEPHP_UPDATER_PROVIDER', 'spaces'),
7272

7373
'providers' => [
74+
'github' => [
75+
'driver' => 'github',
76+
'repo' => env('GITHUB_REPO'),
77+
'owner' => env('GITHUB_OWNER'),
78+
'token' => env('GITHUB_TOKEN'),
79+
'vPrefixedTagName' => env('GITHUB_V_PREFIXED_TAG_NAME', true),
80+
'private' => env('GITHUB_PRIVATE', false),
81+
'channel' => env('GITHUB_CHANNEL', 'latest'),
82+
'releaseType' => env('GITHUB_RELEASE_TYPE', 'draft'),
83+
],
84+
7485
's3' => [
7586
'driver' => 's3',
7687
'key' => env('AWS_ACCESS_KEY_ID'),

0 commit comments

Comments
 (0)