h.hackclub.app/.forgejo/workflows/deploy.yml

19 lines
520 B
YAML
Raw Normal View History

2024-04-07 00:56:50 +00:00
name: 'Deploy website to nest'
author: '9pfs@amcforum.wiki (h @ nest)'
2024-04-07 00:58:05 +00:00
on:
push:
branches:
- main
2024-04-07 00:56:50 +00:00
jobs:
deploy:
runs-on: docker
steps:
- uses: actions/checkout@v3
- id: deploy
run: |
2024-04-07 01:33:17 +00:00
mkdir ~/.ssh && \
echo ${{ secrets.DEPLOY_SSH_KEY}} | base64 -d > ~/.ssh/id_ed25519 && \
cat nest-known-hosts-cache.txt > ~/.ssh/known_hosts && \
chmod -R go-rwx ~/.ssh && \
ssh -T -o UserKnownHostsFile=nest-known-hosts-cache.txt h@hackclub.app