summaryrefslogblamecommitdiff
path: root/.gitlab-ci.yml
blob: 2cb15999a84491984cd0f2e2cdb6c7c18ac497fd (plain) (tree)






















                                                                 
                                                                                                                                                                                                                            


                                    





            
stages:
- deploy

image: ubuntu:rolling
before_script:
  - uname -a

pages:
  stage: deploy
  variables:
    GIT_STRATEGY: clone
    GIT_SUBMODULE_STRATEGY: recursive
    GIT_DEPTH: "1"
    UPDATE_DIR: "../../../public"
    UPDATE_HTTP: "none"
    CC: "clang"
  script:
  - apt-get -qq update
  - apt-get install -qq -y make clang zip zlib1g-dev zlibc python
  - mkdir public
  - make updates
  - make news
  - cp -v world/map/news.txt public/
  - echo '<title>static update server</title><a href="TMW.zip">TMW.zip</a><br><a href="TMW-music.zip">TMW-music.zip</a><br><a href="news.txt">news.txt</a><br><a href="resources.xml">resources.xml</a>' > public/index.html
  # path for legacy compatibility
  - mkdir -p public/updates
  - cp -v public/*.* public/updates/
  artifacts:
    paths:
    - public
  only:
  - web
  - pushes