Skip to content

Commit

Permalink
Add workflow to create the webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Oct 16, 2024
1 parent 31ba900 commit 2d15adc
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: deploy-cookbook

# Only run this when the main branch changes
on:
push:
branches:
- main

# This job installs dependencies, builds the cookbook
# and pushes the html files to `gh-pages` branch
jobs:
deploy-cookbook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Setup python
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install dependencies
run: |
pip install -r requirements.txt
# Build the docs
- name: Build the book
run: |
make html
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html

0 comments on commit 2d15adc

Please sign in to comment.