h.hackclub.app/.forgejo/workflows/deploy.yml
9pfs f783774c34
All checks were successful
Deploy website to nest / deploy (push) Successful in 2s
Actually use workflows correctly
2024-04-06 18:33:17 -07:00

18 lines
520 B
YAML

name: 'Deploy website to nest'
author: '9pfs@amcforum.wiki (h @ nest)'
on:
push:
branches:
- main
jobs:
deploy:
runs-on: docker
steps:
- uses: actions/checkout@v3
- id: deploy
run: |
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