diff options
| author | Stellar Rounin <stellar.rounin+services@gmail.com> | 2026-10-01 19:45:23 -0600 |
|---|---|---|
| committer | Stellar Rounin <stellar.rounin+services@gmail.com> | 2026-10-01 19:45:23 -0600 |
| commit | 47077468fbf05324ab339e8197269627824fdcb0 (patch) | |
| tree | 20bfe40cbd8e3c515938934123dc6612f5d9d7e2 | |
| parent | 4232e727cb12d606489d05970d9568090315bc2a (diff) | |
| download | site-47077468fbf05324ab339e8197269627824fdcb0.tar.xz site-47077468fbf05324ab339e8197269627824fdcb0.zip | |
build(gh actions): Add gh actions deploy file
| -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: / |
