dinobox.obl.ong/.forgejo/workflows/deploy.yml

19 lines
520 B
YAML
Raw Permalink Normal View History

2024-07-07 03:11:22 +00:00
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