Skip to content

Commit

Permalink
Merge pull request #189 from danjohnson95/github-config
Browse files Browse the repository at this point in the history
feat: adds the required config for using GitHub as an updater provider
  • Loading branch information
mpociot authored Sep 21, 2023
2 parents 50e7756 + 8a959c9 commit a1e38b5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config/nativephp.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
*/
'cleanup_env_keys' => [
'AWS_*',
'GITHUB_*',
'DO_SPACES_*',
'*_SECRET',
'NATIVEPHP_UPDATER_PATH',
Expand All @@ -66,11 +67,22 @@

/**
* The updater provider to use.
* Supported: "s3", "spaces"
* Supported: "github", "s3", "spaces"
*/
'default' => env('NATIVEPHP_UPDATER_PROVIDER', 'spaces'),

'providers' => [
'github' => [
'driver' => 'github',
'repo' => env('GITHUB_REPO'),
'owner' => env('GITHUB_OWNER'),
'token' => env('GITHUB_TOKEN'),
'vPrefixedTagName' => env('GITHUB_V_PREFIXED_TAG_NAME', true),
'private' => env('GITHUB_PRIVATE', false),
'channel' => env('GITHUB_CHANNEL', 'latest'),
'releaseType' => env('GITHUB_RELEASE_TYPE', 'draft'),
],

's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
Expand Down

0 comments on commit a1e38b5

Please sign in to comment.