Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github workflow that publishes rendered Archi diagrams to GitHub Pages #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Render ArchiMate diagrams
on: [push, pull_request]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
render-diagrams:
name: 'Render ArchiMate diagrams'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Run the build process with Docker
uses: docker://ghcr.io/nightscape/archimatetool:master
with:
args: --modelrepository.loadModel /github/workspace --html.createReport /github/workspace/exports
- name: Upload the rendered diagrams
uses: actions/upload-artifact@v2
with:
name: rendered-diagrams
path: exports
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './exports/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1