homepage/.gitea/workflows/build.yaml

27 lines
720 B
YAML

name: Homepage
on: [push]
jobs:
build:
runs-on:
- hugo
timeout-minutes: 1
steps:
- run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
- run: hugo
- name: Set up SSH
run: |
mkdir -p $HOME/.ssh
cat > $HOME/.ssh/known_hosts <<EOD
${{ secrets.SSH_KNOWN_HOSTS }}
EOD
umask 077; cat > $HOME/.ssh/id_rsa <<EOD
${{ secrets.SSH_PUBLISH_PRIVATE_KEY }}
EOD
ls -l $HOME/.ssh
md5sum $HOME/.ssh/*
- name: Install built site
run: |
eval $(ssh-agent)
ssh-add
echo ssh-agent rsync --delete -vax ./public/ neale@melville.woozle.org:/srv/www/woozle.org/