-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7bd8bb
commit 04e1014
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: 🚀 Deploy website on push to main | ||
on: | ||
push: | ||
branches: [ v2.x ] | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: executing remote ssh commands | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
script: | | ||
cd ${{ secrets.TARGET_FOLDER_PATH }} | ||
# eval "$(ssh-agent)" | ||
# ssh-add ~/.ssh/github_rsa | ||
git stash | ||
git pull | ||
composer install --optimize-autoloader --no-dev | ||
php artisan optimize:clear | ||
php artisan config:cache | ||
php artisan route:cache | ||
php artisan view:cache | ||
php artisan migrate --force | ||
npm install | ||
npm run build |