parent
0a49531a71
commit
26647303c6
2 changed files with 27 additions and 49 deletions
27
.forgejo/workflows/deploy.yml
Normal file
27
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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
|
||||
|
||||
- name: Install rsync
|
||||
run: apt-get update && apt-get install -y rsync
|
||||
|
||||
- name: Deploy
|
||||
run: rsync -a --delete dist/ /var/lib/www/tensamin-homepage/
|
||||
Loading…
Reference in a new issue