Skip to content

Commit

Permalink
Create docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ram1123 authored Nov 30, 2023
1 parent 2f9f7fa commit cfc60ea
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Deploy Documentation

on:
push:
branches:
- HZZ_Analysis_2l2q # Replace with your default branch if it's not 'main'
pull_request:
workflow_dispatch:

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.8' # Set your Python version here

- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build documentation
run: |
cd docs # Replace with the path to your documentation source
make html
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/_build/html # The folder the action should deploy.
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cfc60ea

Please sign in to comment.