fix: frontend build
Some checks failed
Build and Deploy Go App / build (push) Failing after 6m32s
Build and Deploy Go App / deploy (push) Has been skipped

This commit is contained in:
nihonium 2025-10-09 15:28:25 +03:00
parent 951db38e4c
commit cfc753bf84
Signed by: nihonium
GPG key ID: 0251623741027CFC

View file

@ -26,6 +26,7 @@ jobs:
- name: Build Go app - name: Build Go app
run: | run: |
cd modules/backend cd modules/backend
go mod tidy
go build -o nyanimedb . go build -o nyanimedb .
tar -czvf nyanimedb-backend.tar.gz nyanimedb templates/ tar -czvf nyanimedb-backend.tar.gz nyanimedb templates/
@ -38,13 +39,14 @@ jobs:
# Build frontend # Build frontend
- uses: actions/setup-node@v5 - uses: actions/setup-node@v5
with: with:
node-version-file: 'modules/frontend/package.json' node-version-file: modules/frontend/package.json
cache: 'npm' cache: npm
cache-dependency-path: modules/frontend/package-lock.json cache-dependency-path: modules/frontend/package-lock.json
- name: Build frontend - name: Build frontend
run: | run: |
cd modules/frontend cd modules/frontend
npm install
npm run build npm run build
tar -czvf nyanimedb-frontend.tar.gz dist/ tar -czvf nyanimedb-frontend.tar.gz dist/