mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Build drafts on CI
This commit is contained in:
20
.github/workflows/blog.yml
vendored
20
.github/workflows/blog.yml
vendored
@@ -104,3 +104,23 @@ jobs:
|
|||||||
- name: "Push Changes"
|
- name: "Push Changes"
|
||||||
run: "git push"
|
run: "git push"
|
||||||
working-directory: "blog_os_deploy"
|
working-directory: "blog_os_deploy"
|
||||||
|
|
||||||
|
drafts:
|
||||||
|
name: "Build Drafts"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: 'Download Zola'
|
||||||
|
run: curl -sL https://github.com/getzola/zola/releases/download/v0.16.1/zola-v0.16.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv
|
||||||
|
- name: 'Install Python Libraries'
|
||||||
|
run: python -m pip install --user -r requirements.txt
|
||||||
|
working-directory: "blog"
|
||||||
|
|
||||||
|
- name: "Run before_build.py script"
|
||||||
|
run: python before_build.py
|
||||||
|
working-directory: "blog"
|
||||||
|
- name: "Build Site with drafts"
|
||||||
|
run: ../zola build --drafts
|
||||||
|
working-directory: "blog"
|
||||||
|
|||||||
Reference in New Issue
Block a user