Skip to content

Commit

Permalink
Create .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tboby authored Sep 27, 2019
1 parent 380ccc8 commit 8f486fc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
image: mcr.microsoft.com/dotnet/core/sdk:3.0

variables:
DOCKER_DRIVER: overlay2

stages:
- docs

githubpages:
only:
variables:
- $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_REF_NAME == "master"
stage: docs
script:
- cd ..
- git clone --depth 1 -b gh-pages https://tboby:[email protected]/tboby/cwtools-stellaris-config.git public
- git clone https://www.github.com/tboby/cwtools
- cd ./cwtools/CWToolsDocs
- dotnet tool restore
- dotnet run $CI_PROJECT_DIR
- cp output.html $CI_PROJECT_DIR/../public/index.html
- cd $CI_PROJECT_DIR/../public
- git config user.email "[email protected]"
- git config user.name "Thomas Boby"
- git add -A
- git commit -m "Build from $CI_SERVER_NAME $CI_PIPELINE_ID"
- git push

0 comments on commit 8f486fc

Please sign in to comment.