diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 5f35265..78a963e 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -65,14 +65,15 @@ jobs: key: ${{ secrets.SSH_KEY }} port: ${{ secrets.PORT }} script: | + export PLANTID_LOGS_DISCORD_WEBHOOK_URL=${{ secrets.PLANTID_LOGS_DISCORD_WEBHOOK_URL }} + export PLANTNET_API_KEY=${{ secrets.PLANTNET_API_KEY }} + export PLANTID_DISCORD_BOT_TOKEN=${{ secrets.PLANTID_DISCORD_BOT_TOKEN }} + export PLANTID_FILESERVER_URL=${{ secrets.PLANTID_FILESERVER_URL }} 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 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