This action generates interactive state diagrams and documentation from ALPS profiles.
ALPS profile file path (JSON or XML). Default: "profile.xml"
Output format: html (default), svg, dot, mermaid
Label mode: id (default) or title
Output file path (optional)
Output directory path
https://github.com/alps-asd/alps-skeleton
- Save the following snippet as
.github/workflows/asd.yml - Create
profile.xmland push to GitHub
name: Generate ASD
on: push
jobs:
asd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate diagram
uses: alps-asd/asd-action@v2
id: asd
with:
profile: profile.xml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.asd.outputs.dir }}
destination_dir: ${{ steps.asd.outputs.dir }}Each time you commit, the ASD documents will be generated in gh-pages.
See Configuring a publishing source for your GitHub Pages site. Set the source as gh-pages and root (/).
v2 uses Node.js instead of Docker/PHP. No config file (asd.xml) needed. Just specify inputs directly.
# v1
- uses: alps-asd/asd-action@v1
with:
config: asd.xml
profile: profile.xml
# v2
- uses: alps-asd/asd-action@v2
with:
profile: profile.xml