wiki/.forgejo/workflows/deploy.yml
Sangelo 7cf4d7a75a
Some checks failed
/ deploy (push) Failing after 8s
Change to custom SSH deploy
2024-01-10 17:09:26 +01:00

39 lines
1.1 KiB
YAML

on: [push]
jobs:
deploy:
runs-on: gitpot_main
container:
image: ghcr.io/peaceiris/hugo:latest-full
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# - name: Install Dependencies
# run: |
# apt-get update
# apt-get install -y golang-go
- 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
run: rsync -avz --delete -e "ssh -i ${{ secrets.SSH_PRIV_KEY }} -o StrictHostKeyChecking=no" ./public/ wiki-deploy@${{ secrets.SSH_HOST }}:/var/www/wiki.lunivity.com/
# - 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/'