Skip to content

Add metrics for unique and active contributor counts (#182) #74

Add metrics for unique and active contributor counts (#182)

Add metrics for unique and active contributor counts (#182) #74

Workflow file for this run

# deploys the software gardening almanack content through
# GH Pages using Jupyter Book publishing tools.
---
name: deploy book
on:
push:
branches: [main]
jobs:
deploy-book:
runs-on: ubuntu-latest
# only build and deploy docs if the actor is not dependabot
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install python env
uses: ./.github/actions/install-python-env
- name: Build the jupyter book content
run: |
poetry run poe build-book
- name: Build a PDF from the HTML content
run: |
poetry run poe build-book-pdf
- name: Copy and rename the PDF to the HTML dir
run: |
cp src/_pdfbuild/_build/pdf/book.pdf \
src/book/_build/html/software-gardening-almanack.pdf
- name: Add nojekyll config for GH pages
run: |
touch src/book/_build/html/.nojekyll
- name: Deploy book to GH Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: src/book/_build/html