Skip to content

Commit

Permalink
Added workflow to deploy on main
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed May 13, 2023
1 parent f35c745 commit 809f1ed
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
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 [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"

0 comments on commit 809f1ed

Please sign in to comment.