Skip to content

Commit 519afc6

Browse files
author
pandadiestro
committed
workflows: added docs job
1 parent 482915e commit 519afc6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy Action
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
paths:
7+
- 'stiller-backend/docs/*'
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: system deps
13+
run: |
14+
sudo apt install --upgrade -y openssh-client openssh-known-hosts openssh-server
15+
- name: ssh setup
16+
run: |
17+
mkdir -p ~/.ssh/
18+
chmod 700 ~/.ssh/
19+
eval "$(ssh-agent -s)"
20+
echo "${{ secrets.SSH_PRIVKEY }}" | tr -d '\r' > ~/.ssh/id_rsa
21+
echo "${{ secrets.SSH_PUBKEY }}" | tr -d '\r' > ~/.ssh/id_rsa.pub
22+
chmod 600 ~/.ssh/id_rsa
23+
chmod 600 ~/.ssh/id_rsa.pub
24+
ssh-add -vvv
25+
ls ~/.ssh/
26+
ssh-keyscan -H "${{ secrets.SSH_IP }}" >> ~/.ssh/known_hosts
27+
- name: deploy
28+
run: ssh -vT "bauer@${{ secrets.SSH_IP }}" "cd ~/clones/metagallery/stiller-backend && git pull"

0 commit comments

Comments
 (0)