website/.forgejo/workflows/update.yaml
yourfriendoss 1e0f451888
Some checks failed
/ build (push) Failing after 8s
make the rest work with windows (i think)
2025-10-19 12:29:56 +03:00

26 lines
872 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@v2
- name: Install Rsync
run: choco install rsync -y
shell: pwsh
- run: bun install
shell: pwsh
- run: bun run prod
shell: pwsh
- 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 | Out-File -Append $env:USERPROFILE\.ssh\known_hosts
shell: pwsh
- name: Deploy with rsync
run: rsync -avz ./dist/ ${{ secrets.SSH_USER }}@vps.sad.ovh:/var/www/sad.ovh
shell: pwsh