Created
October 5, 2019 21:04
-
-
Save SpaceManiac/c59c467b5077324cf3ae954ff0e238f9 to your computer and use it in GitHub Desktop.
Travis YML file to run dmdoc and upload its output to GitHub pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: generic | |
dist: xenial | |
sudo: false | |
branches: | |
except: | |
- ___TGS3TempBranch | |
- ___TGSTempBranch | |
matrix: | |
include: | |
- name: "DreamChecker" | |
install: | |
- wget -O ~/dreamchecker "https://github.com/SpaceManiac/SpacemanDMM/releases/download/suite-1.0/dreamchecker" | |
- chmod +x ~/dreamchecker | |
- ~/dreamchecker --version | |
script: | |
- ~/dreamchecker | |
- name: "Generate Documentation" | |
# Only run for non-PR commits to the real master branch | |
if: branch = master AND head_branch IS blank | |
install: | |
- wget -O ~/dmdoc "https://github.com/SpaceManiac/SpacemanDMM/releases/download/suite-1.0/dmdoc" | |
- chmod +x ~/dmdoc | |
- ~/dmdoc --version | |
before_script: | |
# Try to put git back on a branch name if it isn't already. | |
- git checkout -qf $(git name-rev --name-only HEAD) || true | |
script: | |
- ~/dmdoc | |
deploy: | |
provider: pages | |
skip_cleanup: true | |
local_dir: dmdoc | |
github_token: $DMDOC_GITHUB_TOKEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment