Skip to content

Commit

Permalink
Create deploy-alwaysdata.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ComRSMaster committed Feb 15, 2024
1 parent 73efe49 commit e7ad4f7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy-alwaysdata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy release on alwaysdata environment
on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy Python app
uses: appleboy/ssh-action@master
with:
host: ${{secrets.SSH_HOST}}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
cd $HOME/www/Kozlovskiy/
git fetch origin master
git reset --hard origin/master
curl --basic --user "${{ secrets.ALWAYSDATA_TOKEN }} account=${{ secrets.ALWAYSDATA_ACCOUNT }}:" --request POST https://api.alwaysdata.com/v1/site/${{ secrets.ALWAYSDATA_SITE_ID }}/restart/

0 comments on commit e7ad4f7

Please sign in to comment.