1
Fork 0

refactor(actions): migrate .gitea to .forgejo

This commit is contained in:
z0x 2025-03-23 12:30:31 -04:00
parent f262d913b3
commit cea70527bc
2 changed files with 0 additions and 0 deletions
.forgejo/workflows

View file

@ -0,0 +1,35 @@
name: build dist
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-dist:
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup bun.sh
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: |
bun install
bun run build
- name: Deploy to server
uses: https://github.com/appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "dist/*"
target: ${{ secrets.TARGET }}
strip_components: 1
overwrite: true