diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/deploy.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d8e227c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,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: / |
