Skip to content

Commit 3dda09e

Browse files
committed
add workflow
1 parent 598a4b3 commit 3dda09e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy_vps.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Deploy"
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build_deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: "Baixar o código"
11+
uses: actions/checkout@v4
12+
- name: "PHP Composer install"
13+
run: composer install --no-interaction --no-progress --no-suggest --no-dev --ignore-platform-reqs
14+
15+
- name: "Copiar arquivos para VPS"
16+
uses: appleboy/[email protected]
17+
with:
18+
host: "${{ secrets.SSH_HOST }}"
19+
username: "${{ secrets.SSH_USER }}"
20+
password: "${{ secrets.SSH_PASS }}"
21+
source: "."
22+
target: /home/projetos/devandcoffee/api-auth
23+
24+
- name: "Build da aplicação"
25+
uses: appleboy/[email protected]
26+
with:
27+
host: "${{ secrets.SSH_HOST }}"
28+
username: "${{ secrets.SSH_USER }}"
29+
password: ${{ secrets.SSH_PASS }}
30+
script: |
31+
cd /home/projetos/devandcoffee/api-auth

0 commit comments

Comments
 (0)