Skip to content

Commit

Permalink
Updated workflow file for Github Action: pandoc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanger committed Sep 28, 2024
1 parent 1c76007 commit 4811939
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,37 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: xacml-4.0-core-spec
- name: Setup Pages
uses: actions/configure-pages@v5
- name: List files in the repository
run: |
ls ${{ github.workspace }}
mkdir output
- name: Pandoc generation
uses: docker://cdang/pandoc-plantuml
with:
args: >-
-f gfm+definition_lists
-t html
-c https://docs.oasis-open.org/templates/css/markdown-styles-v1.7.3a.css
--toc --toc-depth=5
--standalone
--lua-filter diagram.lua
--embed-resources
--metadata title="eXtensible Access Control Markup Language (XACML) Version 4.0"
--output output/xacml-v4.0-csd01.html
xacml-v4.0-csd01.md
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Pandoc generation
uses: docker://pandoc/core:3.0.1
with:
args: "-f gfm+definition_lists -t html xacml-v4.0-csd01.md -c https://docs.oasis-open.org/templates/css/markdown-styles-v1.7.3a.css --toc --toc-depth=5 -s -o xacml-v4.0-csd01.html --metadata title='eXtensible Access Control Markup Language (XACML) Version 4.0'" # gets appended to pandoc command
# Upload output folder
path: 'output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: summary
run: |
echo "### Check the result: https://oasis-tcs.github.io/xacml-spec/xacml-v4.0-csd01.html" >> $GITHUB_STEP_SUMMARY

0 comments on commit 4811939

Please sign in to comment.