Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate doc publish #872

Merged
merged 2 commits into from
Jul 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion appveyor.yml
Expand Up @@ -7,10 +7,17 @@ pull_requests:
do_not_increment_build_number: true

skip_branch_with_pr: true

branches:
except:
- gh-pages
- 2.x

skip_commits:
files:
- docs/**/*
- package.json
- docs.yml
- readme.md

services:
- mysql
Expand Down Expand Up @@ -45,6 +52,7 @@ deploy:
branch: master
- provider: NuGet
name: production
symbol_server: https://www.nuget.org
api_key:
secure: ZNvfUugU3rYb9t+UWbqt/hspUNLQfjWCvxTFQDpxkEEjLuLNk6amLDfGZZuiZxn4
on:
Expand Down
12 changes: 11 additions & 1 deletion docs.yml
Expand Up @@ -2,23 +2,33 @@ branches:
only:
- master
- develop
- automate-doc-publish

only_commits:
files:
- docs/**/*
- docs.yml
- package.json
- package.lock.json

skip_branch_with_pr: true

install:
- npm install -g npm
- ps: $env:path = $env:appdata + "\npm;" + $env:path
- npm install --no-optional
- npm ci --no-optional

build_script:
- node --version && npm --version
- "%CMD_IN_ENV% npm run docs:build"

deploy_script:
- git config --global credential.helper store
- git config --global user.name "%APPVEYOR_REPO_COMMIT_AUTHOR%"
- git config --global user.email "%APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL%"
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n"
- "%CMD_IN_ENV% npm run docs:publish"

environment:
access_token:
secure: XVMaRsneejSmQsRVdv/SA/FNS3wPz+wrQfOepB5CmdD46za4nOF0RmzoLIo5JDnx
178 changes: 2 additions & 176 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Expand Up @@ -8,7 +8,6 @@
"@vuepress/plugin-back-to-top": "^1.5.2",
"@vuepress/plugin-blog": "^1.9.2",
"@vuepress/plugin-google-analytics": "^1.5.2",
"nodemon": "^2.0.4",
"vuepress": "^1.5.2"
},
"dependencies": {
Expand All @@ -18,9 +17,8 @@
},
"scripts": {
"docs:build": "bash -c \"rm -rf docs/.vuepress/dist\" && vuepress build docs",
"docs:publish": "cd docs/.vuepress/dist && git init && git fetch https://github.com/quartznet/quartznet.github.io.git && git checkout 220443cd2ab45d486fcee10a65669aff0bda31ab && git checkout -b master && git add . && git commit -am \"Deploy Documentation\" && git push --force --set-upstream https://github.com/quartznet/quartznet.github.io.git master",
"docs:dev": "vuepress dev docs",
"start": "nodemon --ext md,vue,config --watch .vuepress --watch . --exec vuepress dev"
"docs:publish": "cd docs/.vuepress/dist && git init && git fetch https://github.com/quartznet/quartznet.github.io.git && git checkout 9966bc53c0685311bc9199498ef2338629f6ec4d && git checkout -b master && git add . && git commit -am \"Deploy Documentation\" && git push --force --set-upstream https://github.com/quartznet/quartznet.github.io.git master",
"docs:dev": "vuepress dev docs"
},
"repository": {
"type": "git",
Expand Down