Commit 82779c66 authored by Markus Mößler's avatar Markus Mößler
Browse files

updated gitlab ci file to server static file and static app files

parent 66166684
Loading
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
image: alpine:latest
image: node:20

pages:
  stage: deploy
  script:
    # Copy static site content
    - mkdir -p public
    - cp -r page/* public/

    # Build React app
    - cd react-frontend/my-react-app
    - npm install
    - npm run build

    # Copy React build to /blog
    - mkdir -p ../../public/blog
    - cp -r build/* ../../public/blog/
  artifacts:
    paths:
      - public