website/.forgejo/workflows/update.yaml

24 lines
772 B
YAML
Raw Normal View History

2024-04-26 18:28:46 +00:00
on: [push]
jobs:
test:
runs-on: node-16
steps:
- uses: http://github.com/actions/checkout@v4
- uses: http://github.com/oven-sh/setup-bun@v1
2024-04-26 18:32:53 +00:00
- name: Install Rsync
run: |
2024-04-26 18:33:26 +00:00
apt-get -qq update
2024-04-26 18:32:53 +00:00
apt-get -qq install rsync
shell: bash
2024-04-26 18:28:46 +00:00
- run: bun install
2024-07-22 22:04:20 +00:00
- run: bun run prod
2024-04-26 18:28:46 +00:00
- name: Install SSH Key
uses: http://github.com/shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
- name: Adding Known Hosts
2024-04-27 08:39:15 +00:00
run: ssh-keyscan -H dedi.sad.ovh >> ~/.ssh/known_hosts
2024-04-26 18:28:46 +00:00
- name: Deploy with rsync
2024-04-27 08:39:15 +00:00
run: rsync -avz ./dist/ ${{ secrets.SSH_USER }}@dedi.sad.ovh:/var/www/sad.ovh