Deploy to Gitlab pages

---
image: node:alpine
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - ~/.npm
    - .jest
stages:
  - test
before_script:
  - npm ci
jest-tests:
  stage: test
  script:
    - npx jest --ci
image: node:alpine
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - ~/.npm
    - .jest
stages:
  - test
  - deploy
before_script:
  - npm ci
jest-tests:
  stage: test
  script:
    - npx jest --ci
expo-deployments:
  stage: deploy
  script:
    - apk add --no-cache bash
    - npx expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
    - npx expo publish --non-interactive

image: node:alpine
before_script:
  - yarn
cache:
  paths:
    - node_modules/
pages:
  script:
    - mkdir public
    - echo y | npx expo build:web
    - mv web-build public
  artifacts:
    paths:
      - public
  only:
    - master


It keeps serving the assets under /static instead of mygroup.gitlab.io/project-name/static

I’ve tried to add a homepage: “/project-name/” and gitlab pages gives me a 404 error.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.