fix: improve the progress and display of logging out. (#28) #116
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: UsagiPass Backend CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "pyproject.toml" # upstream has been bumped | |
| - "usagipass/**" # backend module has been updated | |
| - "alembic/**" # database migration has been updated | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fetch the repository | |
| uses: actions/checkout@v4 | |
| - name: Deploy to Server | |
| uses: easingthemes/ssh-deploy@v5.1.0 | |
| with: | |
| SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
| SCRIPT_AFTER: "cd /UsagiPass && poetry install && pm2 restart usagipass" | |
| ARGS: '-rlgoDzvc -i --delete --exclude=".data" --exclude=".venv" --exclude=".env"' | |
| SOURCE: "/" | |
| REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | |
| REMOTE_USER: ${{ secrets.REMOTE_USER }} | |
| TARGET: /UsagiPass |