Skip to content

Commit ac8094b

Browse files
committed
Deploy script
1 parent c91b74b commit ac8094b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy to VPS
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: self-hosted
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Deploy files
17+
run: |
18+
# Sync directory contents to target location
19+
rsync -av --delete . /srv/jservice
20+
cd /srv/jservice
21+
bundle install
22+

0 commit comments

Comments
 (0)