From 59bbff85914d793df560368f21ab3318734b0deb Mon Sep 17 00:00:00 2001 From: Kingsley Akpan <54294050+Khingz@users.noreply.github.com> Date: Thu, 30 Nov 2023 22:34:48 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f0d6fd7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Deploy Jobcircus + +on: + pull_request: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + + - name: Install dependencies + run: | + python3 -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Deploy to server + run: | + ssh ubuntu@100.25.158.180 'cd /home/ubuntu/jc/job_circus && git pull origin master' + echo "JobCircus for Life!!!"