dinobox.obl.ong/.forgejo/workflows/deploy.yml
9pfs eadc232789
All checks were successful
Deploy website to nest / deploy (push) Successful in 7s
Add deploy workflow
2024-07-07 03:11:22 +00: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