-
Notifications
You must be signed in to change notification settings - Fork 46
36 lines (31 loc) 路 829 Bytes
/
Copy pathdeploy.yml
File metadata and controls
36 lines (31 loc) 路 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Production Doc update
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: production
url: https://www.draftbot.fr/docs
if: github.repository_owner == 'draftbot'
steps:
- uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
script_stop: true
script: |
source ~/.zshrc
cd /home/deploy/Production/web
git pull origin master
pnpm build:doc
pnpm start