This commit is contained in:
parent
feff8daed3
commit
1e0f451888
1 changed files with 7 additions and 5 deletions
|
|
@ -6,12 +6,12 @@ jobs:
|
||||||
- uses: http://github.com/actions/checkout@v4
|
- uses: http://github.com/actions/checkout@v4
|
||||||
- uses: http://github.com/oven-sh/setup-bun@v2
|
- uses: http://github.com/oven-sh/setup-bun@v2
|
||||||
- name: Install Rsync
|
- name: Install Rsync
|
||||||
run: |
|
run: choco install rsync -y
|
||||||
apt-get -qq update
|
shell: pwsh
|
||||||
apt-get -qq install rsync
|
|
||||||
shell: bash
|
|
||||||
- run: bun install
|
- run: bun install
|
||||||
|
shell: pwsh
|
||||||
- run: bun run prod
|
- run: bun run prod
|
||||||
|
shell: pwsh
|
||||||
- name: Install SSH Key
|
- name: Install SSH Key
|
||||||
uses: http://github.com/shimataro/ssh-key-action@v2
|
uses: http://github.com/shimataro/ssh-key-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -19,6 +19,8 @@ jobs:
|
||||||
name: id_ed25519
|
name: id_ed25519
|
||||||
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
|
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
|
||||||
- name: Adding Known Hosts
|
- name: Adding Known Hosts
|
||||||
run: ssh-keyscan -H vps.sad.ovh >> ~/.ssh/known_hosts
|
run: ssh-keyscan -H vps.sad.ovh | Out-File -Append $env:USERPROFILE\.ssh\known_hosts
|
||||||
|
shell: pwsh
|
||||||
- name: Deploy with rsync
|
- name: Deploy with rsync
|
||||||
run: rsync -avz ./dist/ ${{ secrets.SSH_USER }}@vps.sad.ovh:/var/www/sad.ovh
|
run: rsync -avz ./dist/ ${{ secrets.SSH_USER }}@vps.sad.ovh:/var/www/sad.ovh
|
||||||
|
shell: pwsh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue