Add build and deploy workflow
All checks were successful
Build and Deploy / build-deploy (push) Successful in 31s
All checks were successful
Build and Deploy / build-deploy (push) Successful in 31s
This commit is contained in:
26
.gitea/workflows/deploy.yaml
Normal file
26
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Build and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: oven/bun:latest
|
||||
volumes:
|
||||
- /var/www/drosterizer:/deploy
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
run: bun run build
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
rm -rf /deploy/*
|
||||
cp -r dist/* /deploy/
|
||||
Reference in New Issue
Block a user