-
-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (29 loc) · 949 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Deploy
on:
push:
tags:
- '*'
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: 'Production'
steps:
- name: Deploy to production server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}
script: |
cd ${{ secrets.PROJECT_PATH}}
php8.3 artisan down
git fetch --all -p
git reset --hard
git pull "https://Lukasss93:${{ secrets.GIT_TOKEN }}@github.com/Lukasss93/telegram-mermaid.git" master
php8.3 composer.phar install --no-dev --optimize-autoloader --no-ansi --no-interaction --no-progress
php8.3 artisan migrate --force --step
php8.3 artisan optimize
php8.3 artisan nutgram:register-commands
php8.3 artisan up
echo 'DONE!'