blob: d8e227ce7582f3ba7aa922c3ee484210b6115b53 (
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: node.tierhive.com
port: '2222'
username: ${{ secrets.TH_USER }}
ssh_private_key: ${{ secrets.TH_KEY }}
local_path: ./public/*
remote_path: /
|