Skip to content

✨📖 Github Action to publish Sphinx Docs to Confluence

License

Notifications You must be signed in to change notification settings

gmiklos-ltg/publish-confluence

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

publish-confluence

Github action that can be used to publish sphinx documents to confluence. This action is a thin wrapper around the confluencebuilder sphinx builder. It assumes that sphinx settings have been correctly setup, but allows the specification of secret values via inputs.

This action is meant to be used e.g. in a Github repo where you may want to publish to your confluence instance on merging to master.

See the action.yaml file for details of required inputs.

Prerequisites

  • Github repo is setup with confluencebuilder options to publish to confluence on make confluence when run locally

Example usage

The following is a fully functional Github Workflow. Note that atlassianUsername and atlassianApitoken are Github secrets that need to be added to the Github repo.

on: [push]
jobs:
  publish_confluence:
    runs-on: ubuntu-latest
    name: Publish docs to confluence
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-python@v1  # Only required if you have multiple python deps
      with:
        python-version: '3.x'
    - name: publish to confluence
      uses: pratikmallya/publish-confluence@master
      with:
        username: ${{ secrets.atlassianUsername }}
        apitoken: ${{ secrets.atlassianApitoken }}

About

✨📖 Github Action to publish Sphinx Docs to Confluence

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 73.0%
  • Dockerfile 27.0%