Skip to content

fix: seasonal-calculator working after season ends #53

fix: seasonal-calculator working after season ends

fix: seasonal-calculator working after season ends #53

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci:') && !contains(github.event.head_commit.message, 'docs:')"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deploy
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.VPS_USERNAME }}@${{ secrets.VPS_HOST }} << 'EOF'
cd skyhelper
git pull
docker stop skyhelper
docker rm skyhelper
docker build -t skyhelper .
docker run -d --name skyhelper -p 5000:5000 --restart always skyhelper
EOF