homepage/.gitea/workflows/build.yaml

24 lines
648 B
YAML
Raw Normal View History

2023-10-27 14:53:05 -06:00
name: Homepage
on: [push]
jobs:
2023-10-27 15:04:19 -06:00
build:
2023-10-27 20:52:19 -06:00
runs-on:
2023-10-27 20:53:16 -06:00
- hugo
2023-10-27 22:10:28 -06:00
timeout-minutes: 1
2023-10-27 14:53:05 -06:00
steps:
2023-10-27 21:19:56 -06:00
- run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
- run: hugo
2023-10-27 22:05:48 -06:00
- name: Set up SSH
2023-10-27 21:33:32 -06:00
run: |
mkdir -p $HOME/.ssh
cp .gitea/workflows/known_hosts $HOME/.ssh
2023-10-27 21:36:48 -06:00
umask 077; cat > $HOME/.ssh/id_rsa <<EOD
${{ secrets.SSH_PUBLISH_PRIVATE_KEY }}
EOD
2023-10-27 22:08:21 -06:00
ls -l $HOME/.ssh
2023-10-27 21:36:48 -06:00
md5sum $HOME/.ssh/id_rsa
2023-10-27 22:10:28 -06:00
- run: |
2023-10-27 22:13:14 -06:00
eval $(ssh-agent)
ssh-add -l
2023-10-27 22:05:48 -06:00
echo ssh-agent rsync --delete -vax ./public/ neale@melville.woozle.org:/srv/www/woozle.org/