Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TrayMachi committed Nov 12, 2024
2 parents 9a32ef2 + 6f46e62 commit a82c8e5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
name: Deploy to VM
runs-on: ubuntu-latest
steps:
- name: SSH and Pull Latest Changes
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
proxy_host: ${{ secrets.PROXY_HOST }}
proxy_username: ${{ secrets.PROXY_USERNAME }}
proxy_passphrase: ${{ secrets.PROXY_PASSPHRASE }}
proxy_key: ${{ secrets.PROXY_KEY }}
proxy_port: ${{ secrets.PROXY_PORT }}
script: |
cd ~/BETIS25-FE
git pull upstream main
pnpm run build
pm2 restart betis25-fe

0 comments on commit a82c8e5

Please sign in to comment.