.gitlab-ci.yml 473 Bytes
Newer Older
Rushikesh Padsala's avatar
Rushikesh Padsala committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
image: node:lts

stages:
  - build
  - deploy

build:
  stage: build
  script:
    - cd /builds/gitlab/$CI_PROJECT_PATH/public
    - npm install
    - npm run build
    - npx tsc
  artifacts:
    paths:
      - public
  only:
    - master

pages:
  stage: deploy
  script:
    - apt-get update -qy
    - apt-get install -y rsync
    - echo "Deploying to https://transfer.hft-stuttgart.de/pages/$CI_PROJECT_PATH/"
  artifacts:
    paths:
      - public
  only:
    - master