Commit 34210be7 authored by Mark Beierl's avatar Mark Beierl
Browse files

Automatic build and publication of docs

parent 133e8a3b
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+39 −0
Original line number Diff line number Diff line
#######################################################################################
# Copyright ETSI Contributors and Others.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################################################

stages:
  - build
  - deploy

build-docs:
  image: python:3.8
  stage: build
  script:
    - tox -e build

deploy-job:
  stage: deploy
  script:
    - mkdir -p local
    - echo "USERNAME=$FTP_USERNAME" > local/.credentials
    - echo "PASSWORF=$FTP_PASSWORD" > local/.credentials
    - tox -e publish
  # Only publish on protected branches.  This avoids publish for merge requests
  rules:
    - if: '$CI_COMMIT_REF_PROTECTED == "true"'
      when: on_success