Skip to content

Fix deploy.yaml again.... #4

Fix deploy.yaml again....

Fix deploy.yaml again.... #4

Workflow file for this run

name: Deploy Hugo Site
on:
push:
branches:
- master # Adjust the branch name if needed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.113.0'
- name: Build Hugo Site
run: hugo --minify
- name: Deploy to Server
uses: easingthemes/ssh-deploy@v2
with:
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
TARGET: "/home/nawanmyi/domains/nawan.my.id/public_html"
SOURCE: "./public"
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-avz --delete"