mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-09 12:50:05 +00:00
Deploy docs, take 3
This commit is contained in:
parent
c7252b3344
commit
33a1de57af
2
.github/workflows/doc.yml
vendored
2
.github/workflows/doc.yml
vendored
@ -39,4 +39,4 @@ jobs:
|
||||
cmake $GITHUB_WORKSPACE
|
||||
$GITHUB_WORKSPACE/support/mkdocs deploy dev
|
||||
cd $GITHUB_WORKSPACE/build/fmt.dev
|
||||
git push https://$KEY@github.com/fmtlib/fmt.git
|
||||
git push https://$KEY@github.com/fmtlib/fmt.dev.git
|
||||
|
@ -20,9 +20,8 @@ args = sys.argv[1:]
|
||||
if len(args) > 0:
|
||||
command = args[0]
|
||||
if command == 'deploy':
|
||||
site_repo = 'git@github.com:fmtlib/fmt.dev.git'
|
||||
if 'CI' in os.environ:
|
||||
site_repo = 'https://github.com/fmtlib/fmt.dev.git'
|
||||
git_url = 'https://github.com/' if 'CI' in os.environ else 'git@github.com:'
|
||||
site_repo = git_url + 'fmtlib/fmt.dev.git'
|
||||
|
||||
site_dir = os. path.join(build_dir, 'fmt.dev')
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user