Deploy Vapid with Gitlab Pages

You can deploy Vapid Gitlab Pages, just add this .gitlab-ci.yml to your repo:

image: node:latest

pages:
  script:
    - mkdir public/ || true
    - npm install @vapid/cli -g --unsafe-perm --allow-root
    - npm install
    - npm run build
    - mv ./dist/* ./public
  artifacts:
    paths:
      - public
  cache:
    paths:
      - .cache
      - node_modules
      - data/
      - dist/
      - public/

  only:
    - master

Let me know if you run some obstacle.

1 Like