Skip to content

Update example url to hotfix/0.100.x #4

Update example url to hotfix/0.100.x

Update example url to hotfix/0.100.x #4

Workflow file for this run

name: Docs
on:
push:
branches:
- hotfix/0.100.x
- diego/legacy-docs
jobs:
docs:
name: Build and publish documentation
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
lfs: true
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Configure SSH key for docs insiders setup
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install Poetry
run: pip install poetry==1.5.1
- name: Fetch tags to enable autoversioning
run: git fetch --prune --unshallow --tags
- name: Update package version to PEP 440-compliant production release tag
run: poetry version $(git describe --tags --abbrev=0)
- name: Install Poetry dependencies
run: poetry install
- name: Install docs 'insiders' dependencies
run: ./docs/setup_insiders.sh
- name: Publish 'kolena' documentation to legacy production (S3)
run: |
poetry run mkdocs build --verbose --strict --config-file mkdocs.insiders.yml
aws s3 sync ./site "s3://legacy-docs.kolena.io"