parent
2bc41955cf
commit
94c2b72e40
|
@ -1,11 +0,0 @@
|
||||||
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
|
|
||||||
- run: bun install
|
|
||||||
- run: bun src/build.ts
|
|
||||||
- run: cat dist/dist.js
|
|
||||||
- run: echo hi
|
|
18
.forgejo/workflows/update.yaml
Normal file
18
.forgejo/workflows/update.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
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
|
||||||
|
- run: bun install
|
||||||
|
- run: bun src/build.ts --build
|
||||||
|
- 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
|
||||||
|
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
- name: Deploy with rsync
|
||||||
|
run: rsync -avz ./dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/sad.ovh
|
Loading…
Reference in a new issue