From 5aa9403890ac774f9106630e75a1c911ad1fee02 Mon Sep 17 00:00:00 2001 From: Alois Date: Sat, 2 May 2026 14:51:14 +0200 Subject: [PATCH] (feat): add deploy workflows --- .forgejo/workflows/deploy-dev.yml | 27 +++++++++++++++++++++++++++ .forgejo/workflows/deploy-prod.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .forgejo/workflows/deploy-dev.yml create mode 100644 .forgejo/workflows/deploy-prod.yml diff --git a/.forgejo/workflows/deploy-dev.yml b/.forgejo/workflows/deploy-dev.yml new file mode 100644 index 0000000..26053ff --- /dev/null +++ b/.forgejo/workflows/deploy-dev.yml @@ -0,0 +1,27 @@ +on: + push: + branches: + - dev + +jobs: + deploy: + runs-on: docker + + steps: + - name: Check out repo + uses: https://data.forgejo.org/actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Build + run: bun run build:web + + - 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-dev/ diff --git a/.forgejo/workflows/deploy-prod.yml b/.forgejo/workflows/deploy-prod.yml new file mode 100644 index 0000000..fc0c03e --- /dev/null +++ b/.forgejo/workflows/deploy-prod.yml @@ -0,0 +1,29 @@ +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: docker + + steps: + - name: Check out repo + uses: https://data.forgejo.org/actions/checkout@v4 + + - 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