diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index b0d4307..06fd99c 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -66,11 +66,13 @@ jobs: port: ${{ secrets.PORT }} script: | cd /home/${{ secrets.USERNAME }}/plantid_discord_bot + ls- la + env| grep PLANTID tar -xzf release.tar.gz current_release/bin/plantid_discord_bot stop || true - sleep 5 rm -rf old_release mv current_release old_release || true mv plantid_discord_bot current_release + ls -la current_release/bin/plantid_discord_bot daemon rm -f release.tar.gz