Skip to content

Kopfstein/pyscaffold-gh-pages-deploy

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyscaffold-gh-pages-deploy

Build and deploy documentation for Pyscaffold-based projects on GitHub Pages.

Project generated with PyScaffold License: MIT

GitHub Action to automatically build the documentation of a Python project based on Pyscaffold and publish it on GitHub Pages.

See Repository pyscaffold-gh-pages-deploy-test for a demo project generating documentation on Github Pages.

Individual steps used by this GitHub Action:

  1. Install dependencies (tox)
  2. Configure git
  3. Create branch gh-pages in the repository if it doesn't exist. Warning: if the branch exists already, it will be overwritten
  4. Checkout the main branch
  5. Build documentation using tox -e docs
  6. Push the documentation to the gh-pages branch

Installation

You can add this action to your GitHub Workflow by adding a YAML file with the name gh-pages-deploy.yml in the folder .github/workflows of your repo with following content:

name: gh-pages-deploy
on: 
  push:
    branches:
      - main
jobs:
  gh-pages-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3
      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: 3.8
      - name: Deploy docs to GitHub Pages
        uses: Kopfstein/pyscaffold-gh-pages-deploy@latest

Ackowledgements

This project was developed using information and/or code snippets from following projects. Thanks to the authors of these projects for creating open source software!

About

GitHub Action to deploy documentation build by projects using Pyscaffold on GitHub Pages.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published