Skip to content

winninggodspower is testing out GitHub Actions πŸš€ #10

winninggodspower is testing out GitHub Actions πŸš€

winninggodspower is testing out GitHub Actions πŸš€ #10

Workflow file for this run

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 upgrade
npm run build
- run: echo "🍏 This job's status is ${{ job.status }}."