build: remove pip/setuptools upgrade conflicting with apt-managed pip #76
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Server Build & Push | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repo | |
| uses: actions/checkout@v3 | |
| with: | |
| # for Sentry releases | |
| fetch-depth: 0 | |
| - name: Create Sentry release | |
| uses: getsentry/action-release@v1 | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| SENTRY_ORG: eviltelegrambot | |
| SENTRY_PROJECT: eviltelegrambot | |
| with: | |
| environment: production | |
| - name: Deploy | |
| uses: appleboy/ssh-action@v0.1.5 | |
| with: | |
| host: ${{ secrets.SSH_HOST }} | |
| username: ${{ secrets.SSH_USERNAME }} | |
| password: ${{ secrets.SSH_PASSWORD }} | |
| script: | | |
| cd ${{ secrets.SSH_PATH }} | |
| git fetch --all | |
| git reset --hard origin/master | |
| echo "${{ secrets.BOT_ENV }}" > bot.env | |
| echo "${{ secrets.DB_ENV }}" > db.env | |
| docker compose up --build -d |