Skip to content

Commit

Permalink
python app workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin op iMac committed Oct 31, 2023
1 parent 6c76f62 commit bac5cc4
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
contents: read

jobs:
build:
test:

runs-on: ubuntu-latest

Expand All @@ -37,5 +37,26 @@ jobs:
- name: Test with pytest
run: |
pytest
build:

runs-on: ubuntu-latest
needs: test
steps:
- name: update version
run: |
echo "Updating version..."
sed -i "s/__version__ = .*/__version__ = \"$GITHUB_SHA\"/g" src/main.py
echo "Version updated!"
- name: Deploy to Linode
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.WINC_HOST }}
username: ${{ secrets.WINC_USER_NAME }}
key: ${{ secrets.GH_SECRET }}
port: 22
script: |
sh ./deploy.sh

0 comments on commit bac5cc4

Please sign in to comment.