summaryrefslogtreecommitdiff
path: root/.github/workflows/deploy.yml
blob: 4fd88881eab1e6eb459cc53b38382ec1e2efc5c2 (plain)
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
name: Deploy Hugo

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v3
        with:
          hugo-version: 'latest'
          extended: true

      - name: Build
        run: hugo --minify

      - name: Deploy
        uses: wlixcc/SFTP-Deploy-Action@v1.2.4
        with:
          server: us.4.pages.tierhive.com
          port: '3523'
          username: ${{ secrets.TH_USER }}
          ssh_private_key: ${{ secrets.TH_KEY }}
          local_path: ./public/*
          remote_path: /