mirror of
https://github.com/skidoodle/albert.lol.git
synced 2026-04-28 11:17:41 +02:00
astro
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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 }}
|
||||
Reference in New Issue
Block a user