Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
milanm committed Jun 25, 2024
2 parents 8f73ddb + 46520f5 commit 070911c
Show file tree
Hide file tree
Showing 3 changed files with 598 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/deploy-confluence.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy Documentation to Confluence

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- 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: Pull doctoolchain
run: docker pull doctoolchain/doctoolchain:v3.3.1

- name: Setup docToolChain wrapper
run: |
curl -Lo dtcw https://doctoolchain.org/dtcw
chmod +x dtcw
./dtcw tasks --group doctoolchain
- name: Deploy to Confluence
env:
CONFLUENCE_USERNAME: ${{ secrets.CONFLUENCE_USERNAME }}
CONFLUENCE_PASSWORD: ${{ secrets.CONFLUENCE_PASSWORD }}
run: |
sudo ./dtcw publishToConfluence -PconfluenceUser="$CONFLUENCE_USERNAME" -PconfluencePass="$CONFLUENCE_PASSWORD"
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build
.gradle
*dtcw*
.puml
src/**/structurizr/*.json
src/**/structurizr/.structurizr
Loading

0 comments on commit 070911c

Please sign in to comment.