winninggodspower is testing out GitHub Actions π #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Actions Deploymen | |
run-name: ${{ github.actor }} is testing out GitHub Actions π | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
environment: "imges-to-pdf" | |
steps: | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: pulling latest changes from server and installing requirements.txt via ssh | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST_IP }} | |
username: ${{ secrets.HOST_USERNAME }} | |
password: ${{ secrets.HOST_PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: | | |
source /home/southupd/virtualenv/ImgToPdfWebApp/3.9/bin/activate | |
cd /home/southupd/ImgToPdfWebApp | |
git pull origin master | |
pip install -r requirements.txt | |
flask --app src db init | |
flask --app src db upgrade | |
- run: echo "π This job's status is ${{ job.status }}." |