Updated dependencies #7
This file contains 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: Deployment of runciv | |
concurrency: | |
group: production | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: deploy to server | |
run: | | |
ssh -o "StrictHostKeyChecking accept-new" [email protected] "cd /root/runciv && git pull && cargo build -r && install -o root /root/runciv/target/release/runciv /usr/local/bin/runciv && /usr/local/bin/runciv migrate /root/runciv/migrations/ && systemctl restart runciv.service" |