Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
cb150e60
Unverified
Commit
cb150e60
authored
Feb 17, 2019
by
Edward Thomson
Committed by
GitHub
Feb 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4989 from libgit2/ethomson/ci_docs
ci: publish documentation on merge
parents
b5b3aa93
fbfa41a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
azure-pipelines.yml
+13
-3
No files found.
azure-pipelines.yml
View file @
cb150e60
...
...
@@ -130,10 +130,12 @@ jobs:
steps
:
-
script
:
|
git config user.name 'Documentation Generation'
git config user.email 'noreply@libgit2.org'
docker run --rm -v /home/vsts/work/1/s:/src -w /src libgit2/docurium:test cm doc api.docurium
git config user.email 'libgit2@users.noreply.github.com'
git branch gh-pages origin/gh-pages
docker run --rm -v $(Build.SourcesDirectory):/src -w /src libgit2/docurium:latest cm doc api.docurium
git checkout gh-pages
cp -R * '$(Build.BinariesDirectory)'
displayName
:
'
Generate
Documentation'
-
task
:
archivefiles@2
displayName
:
'
Archive
Documentation'
inputs
:
...
...
@@ -141,7 +143,15 @@ jobs:
includeRootFolder
:
false
archiveFile
:
'
$(Build.ArtifactStagingDirectory)/api-documentation.zip'
-
task
:
publishbuildartifacts@1
displayName
:
'
Upload
Documentation'
displayName
:
'
Upload
Documentation
Artifact
'
inputs
:
pathToPublish
:
'
$(Build.ArtifactStagingDirectory)'
artifactName
:
'
docs'
-
script
:
|
git remote -v
echo 'machine github.com' > ~/.netrc
echo 'login $(GITHUB_USERNAME)' >> ~/.netrc
echo 'password $(GITHUB_PAT)' >> ~/.netrc
git push origin gh-pages
displayName
:
'
Publish
Documentation'
condition
:
eq(variables['Build.Reason'], 'IndividualCI')
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment