mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Run Zola build on azure pipelines
Produce generated site as artifact.
This commit is contained in:
@@ -11,11 +11,6 @@ trigger:
|
|||||||
# Build post braches
|
# Build post braches
|
||||||
- post-*
|
- post-*
|
||||||
|
|
||||||
pr:
|
|
||||||
branches:
|
|
||||||
exclude:
|
|
||||||
- master
|
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-16.04
|
||||||
|
|
||||||
@@ -27,5 +22,24 @@ steps:
|
|||||||
displayName: 'Build Info'
|
displayName: 'Build Info'
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
|
|
||||||
- script: echo "Nothing to do for master branch"
|
- bash: curl -sL https://github.com/getzola/zola/releases/download/v0.6.0/zola-v0.6.0-x86_64-unknown-linux-gnu.tar.gz | tar zxv
|
||||||
displayName: "Nothing to do"
|
displayName: "Download Zola"
|
||||||
|
|
||||||
|
- script: python -m pip install --upgrade pip setuptools wheel
|
||||||
|
displayName: 'Install Python Tools'
|
||||||
|
|
||||||
|
- script: python -m pip install --user PyGithub
|
||||||
|
displayName: 'Install PyGithub'
|
||||||
|
|
||||||
|
- script: python before_build.py
|
||||||
|
displayName: "Run before_build.py script"
|
||||||
|
workingDirectory: "blog"
|
||||||
|
|
||||||
|
- script: ../zola build
|
||||||
|
displayName: "Build Site"
|
||||||
|
workingDirectory: "blog"
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@0
|
||||||
|
inputs:
|
||||||
|
artifactName: 'generated_site'
|
||||||
|
targetPath: 'blog/public'
|
||||||
|
|||||||
Reference in New Issue
Block a user