@@ -11,8 +11,8 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pandoc and rsync
|
||||
run: sudo apt-get update && sudo apt-get install -y pandoc rsync
|
||||
- name: Install pandoc
|
||||
run: apt-get update && apt-get install -y pandoc
|
||||
|
||||
- name: Generate HTML
|
||||
run: pandoc index.md -s -o index.html --css styles.css
|
||||
@@ -23,11 +23,9 @@ jobs:
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
|
||||
- name: Deploy to server via rsync
|
||||
- name: Deploy to server via SCP
|
||||
run: |
|
||||
rsync -avz --delete \
|
||||
-e "ssh -p ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
|
||||
--exclude='.git' \
|
||||
scp -P ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
|
||||
index.html styles.css nginx.conf \
|
||||
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/share/nginx/html/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user