Skip to content

Commit a1e38b5

Browse files
authored
Merge pull request #189 from danjohnson95/github-config
feat: adds the required config for using GitHub as an updater provider
2 parents 50e7756 + 8a959c9 commit a1e38b5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

config/nativephp.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
*/
4646
'cleanup_env_keys' => [
4747
'AWS_*',
48+
'GITHUB_*',
4849
'DO_SPACES_*',
4950
'*_SECRET',
5051
'NATIVEPHP_UPDATER_PATH',
@@ -66,11 +67,22 @@
6667

6768
/**
6869
* The updater provider to use.
69-
* Supported: "s3", "spaces"
70+
* Supported: "github", "s3", "spaces"
7071
*/
7172
'default' => env('NATIVEPHP_UPDATER_PROVIDER', 'spaces'),
7273

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

0 commit comments

Comments
 (0)