Skip to content

Merge branch 'main' of https://github.com/milanm/architecture-docs #9

Merge branch 'main' of https://github.com/milanm/architecture-docs

Merge branch 'main' of https://github.com/milanm/architecture-docs #9

Workflow file for this run

name: Deploy Documentation to GitHub Pages
on:
push:
branches:
- main # Trigger the workflow on push to the main branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Generate PlantUML diagrams
run: docker-compose run --rm generate-diagrams
- name: Generate HTML documentation
run: docker-compose run --rm generate-docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs