This commit is contained in:
parent
4e8d46b20e
commit
5aa9403890
2 changed files with 56 additions and 0 deletions
27
.forgejo/workflows/deploy-dev.yml
Normal file
27
.forgejo/workflows/deploy-dev.yml
Normal file
|
|
@ -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/
|
||||||
29
.forgejo/workflows/deploy-prod.yml
Normal file
29
.forgejo/workflows/deploy-prod.yml
Normal file
|
|
@ -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
|
||||||
Loading…
Reference in a new issue