35 lines
768 B
YAML
35 lines
768 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Check out repo
|
|
uses: https://data.forgejo.org/actions/checkout@v4
|
|
|
|
- name: Install sudo
|
|
run: apt-get update && apt-get install -y sudo
|
|
|
|
- name: Install Nix
|
|
uses: https://github.com/cachix/install-nix-action@v30
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Build
|
|
run: bun run build:apps
|
|
|
|
- name: Install rsync
|
|
run: apt-get update && apt-get install -y rsync
|
|
|
|
- name: Deploy
|
|
run: rsync -a --delete apps/web/dist/ /var/lib/www/tensamin-web-prod/
|
|
|
|
# todo: add release of .deb, .rpm & .apk
|