This commit is contained in:
parent
7ef78b1690
commit
890a585c88
1 changed files with 22 additions and 0 deletions
22
.forgejo/workflows/deploy.yml
Normal file
22
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: /home/reactor/projects/cosmoguard_backend
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: /home/reactor/projects/cosmoguard_backend
|
||||
run: uv sync --frozen
|
||||
|
||||
- name: Restart service
|
||||
run: sudo systemctl restart cosmo_api
|
||||
Loading…
Reference in a new issue