mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-12-07 05:33:37 +01:00
34 lines
671 B
YAML
34 lines
671 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Build Astro
|
|
run: bun run build
|
|
|
|
- name: Deploy
|
|
uses: appleboy/scp-action@v1
|
|
with:
|
|
host: ${{ secrets.VPS_HOST }}
|
|
username: ${{ secrets.VPS_USER }}
|
|
key: ${{ secrets.VPS_KEY }}
|
|
source: "dist/*"
|
|
target: ${{ secrets.VPS_PATH }}
|