Skip to content

Commit 0defcbc

Browse files
committed
2 parents f9088dd + 87c67cf commit 0defcbc

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Convert Markdown to PDF
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
convert:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: dump workspace location for debugging
16+
run: |
17+
echo '${{ github.workspace }}'
18+
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
- name: Create file list
23+
id: files_list
24+
run: |
25+
mkdir output
26+
echo "files=$(printf '"%s" ' /home/runner/work/www-project-thick-client-application-security-verification-standard/document/0.1/*.md)" > $GITHUB_OUTPUT
27+
28+
- name: Convert Markdown to PDF
29+
uses: docker://pandoc/latex:2.9
30+
with:
31+
args: --output=output/TASVS-v0.1.pdf ${{ steps.files_list.outputs.files }}
32+
33+
- name: Upload PDF artifact
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: output-pdf
37+
path: output/TASVS-v0.1.pdf

0 commit comments

Comments
 (0)