Files
website/.gitea/workflows/build.yml
caiowakamatsu e9a4ba9903
Some checks failed
Build Hugo Site / build (push) Failing after 5s
more debug
2025-11-10 02:08:25 -03:00

41 lines
1.0 KiB
YAML

name: Build Hugo Site
on:
push:
branches:
- main
jobs:
build:
runs-on: self-hosted
container:
image: klakegg/hugo:ext-alpine
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: hugo --minify
- name: Debug SSH key
run: |
echo "Key length: $(echo "$SSH_KEY" | wc -c)"
- name: Dump env (sanitized)
run: |
echo "All env vars injected:"
env | sort | grep -E 'SSH_|GITEA|ACT' || true
- name: Deploy
run: |
apk add --no-cache rsync openssh
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
rsync -avz --delete -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" public/ ${SSH_USER}@${SSH_HOST}:${DEPLOY_PATH}
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}