Skip to content

Commit

Permalink
ci: added deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkovtyk committed Dec 11, 2024
1 parent 50e625b commit 8b8de60
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy
on:
workflow_dispatch:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install
uses: pnpm/action-setup@v4
with:
version: latest
run_install: true

- name: Build
run: pnpm run build

- name: Deploy
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSH_KEY }}
source: "dist/*"
target: "/var/www"

0 comments on commit 8b8de60

Please sign in to comment.