Skip to content

Commit

Permalink
ci(.github): create GitHub Action workflow "CI"
Browse files Browse the repository at this point in the history
  • Loading branch information
hepheir authored Sep 1, 2024
1 parent f195e5c commit 88f61b7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
branches: [ "main" ]

jobs:
build:
name: CI via SSH
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOSTNAME }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
key: ${{ secrets.SSH_KEY }}
script: >-
cd be-django
git pull origin main
git checkout main
systemctl restart uwsgi

0 comments on commit 88f61b7

Please sign in to comment.