website/.forgejo/workflows/update.yaml
yourfriendoss 7acedb0f48
Some checks failed
/ build (push) Failing after 42s
worth a try ig
2025-10-19 11:12:42 +03:00

24 lines
805 B
YAML

on: [push]
jobs:
build:
runs-on: windows-node-22
steps:
- uses: http://github.com/actions/checkout@v4
- uses: http://github.com/oven-sh/setup-bun@v1
- name: Install Rsync
run: |
apt-get -qq update
apt-get -qq install rsync
shell: bash
- run: bun install
- run: bun run prod
- name: Install SSH Key
uses: http://github.com/shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
name: id_ed25519
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
- name: Adding Known Hosts
run: ssh-keyscan -H vps.sad.ovh >> ~/.ssh/known_hosts
- name: Deploy with rsync
run: rsync -avz ./dist/ ${{ secrets.SSH_USER }}@vps.sad.ovh:/var/www/sad.ovh