z0x.ca/.gitea/workflows/build-dist.yaml
z0x 702361c3ca
Some checks failed
build dist / build-dist (push) Failing after 25s
fix(actions): forgejo repo link defaulting
2025-03-23 11:17:58 -04:00

35 lines
751 B
YAML

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