Fixed deploy
This commit is contained in:
parent
cfa9be4705
commit
bf8dda5a4c
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@ -20,10 +20,6 @@ jobs:
|
||||
tools: composer
|
||||
extensions: bcmath, ctype, fileinfo, json, odbc, mbstring, openssl, pdo, pdo_mysql, pdo_odbc tokenizer, xml, soap, redis, igbinary
|
||||
php-version: "8.2"
|
||||
ssh-config: |
|
||||
Host benhub
|
||||
Port 9001
|
||||
User git
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --no-interaction --no-scripts --prefer-dist
|
||||
|
||||
@ -8,7 +8,7 @@ require 'contrib/npm.php';
|
||||
// Config
|
||||
|
||||
set('git_ssh_command', 'ssh');
|
||||
set('repository', 'benhub/PriceyBot/PriceyBotPanel.git');
|
||||
set('repository', 'ssh://git@ssh.git.lovelynet.net:9001/PriceyBot/PriceyBotPanel.git');
|
||||
|
||||
add('shared_files', []);
|
||||
add('shared_dirs', []);
|
||||
@ -33,10 +33,10 @@ task('npm:build', function () {
|
||||
'staging' => 'development',
|
||||
default => 'production'
|
||||
};
|
||||
|
||||
run("cd {{release_path}} && {{bin/npm}} run {$command}");
|
||||
});
|
||||
|
||||
|
||||
// Hooks
|
||||
after('deploy:vendors', 'npm:install');
|
||||
after('npm:install', 'npm:build');
|
||||
|
||||
Reference in New Issue
Block a user