wiki/.forgejo/workflows/deploy.yml
Sangelo 701d10abbc
Some checks failed
/ deploy (push) Failing after 27s
Change to node container
2024-01-10 16:26:06 +01:00

31 lines
791 B
YAML

on: [push]
jobs:
deploy:
runs-on: gitpot_main
container:
image: code.forgejo.org/oci/node:20-bookworm
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build Hugo Site
run: hugo
- name: Deploy to SSH Host
uses: https://github.com/Creepios/sftp-action@v1.0.5
with:
host: ${{ secrets.SSH_HOST }}
port: 22
username: wiki-deploy
privateKey: ${{ secrets.SSH_PRIV_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
localPath: './public'
remotePath: '/var/www/wiki.lunivity.com/'