Skip to content

Manually publish documentation #12

Manually publish documentation

Manually publish documentation #12

Workflow file for this run

name: Manually publish documentation
on: workflow_dispatch
jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs
pip install mkdocs-dracula-theme
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build docs
run: |
mkdocs build
- name: Deploy docs to S3 bucket
uses: jakejarvis/[email protected]
with:
args: --follow-symlinks --delete
env:
AWS_S3_BUCKET: 'origin-osaas-api-docs'
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'eu-north-1'
SOURCE_DIR: 'site/'