parent
bc926b9bba
commit
e74d518f35
2 changed files with 27 additions and 0 deletions
26
.forgejo/workflows/ci.yml
Normal file
26
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NODE_ENV: production
|
||||
container:
|
||||
image: node:16-bullseye
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Frontend
|
||||
working-directory: frontend
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Build Backend
|
||||
working-directory: backend
|
||||
run: |
|
||||
npm install
|
||||
npm run production
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,6 +2,7 @@ db/
|
|||
*/.env
|
||||
.env*
|
||||
todo
|
||||
.forgejo/workflows/env
|
||||
sqldumps/
|
||||
logs/
|
||||
dist/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue