Skip to content

Commit 597690a

Browse files
authored
Merge pull request #3 from TrustedComputingGroup/test-pr
Re-do actions, update pandoc
2 parents 75a5a31 + 0f0243c commit 597690a

File tree

4 files changed

+51
-51
lines changed

4 files changed

+51
-51
lines changed

.github/workflows/actions.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Render the spec to PDF and Word on pull requests and releases, attaching the
2+
# outputs to the pull request / release, as appropriate.
3+
4+
name: Render spec
5+
6+
on:
7+
pull_request:
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
render:
13+
runs-on: ubuntu-latest
14+
container:
15+
image: ghcr.io/trustedcomputinggroup/pandoc:0.8.1
16+
name: Render PDF
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Render
22+
uses: trustedcomputinggroup/[email protected]
23+
with:
24+
extra-build-options: "--gitstatus --plain_quotes"
25+
input-md: spec.md
26+
output-pdf: spec.pdf
27+
output-docx: spec.docx
28+
29+
- name: Upload PDF to PR
30+
uses: actions/upload-artifact@master
31+
if: ${{ github.event_name == 'pull_request' }}
32+
with:
33+
name: spec
34+
path: spec.pdf
35+
36+
- name: Upload PDF and docx to release
37+
uses: svenstaro/upload-release-action@v2
38+
if: ${{ github.event_name == 'release' }}
39+
with:
40+
repo_token: ${{ secrets.GITHUB_TOKEN }}
41+
file: spec.*
42+
tag: ${{ github.ref }}
43+
overwrite: true
44+
file_glob: true

.github/workflows/main.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

main.md renamed to spec.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
title: "Document Title"
3-
version: 0.1
4-
revision: 1
5-
date: 2022/09/17
63
type: SPECIFICATION
7-
status: DRAFT
84
...
95

106
---
@@ -43,11 +39,11 @@ owners.
4339

4440
# Change History
4541

46-
| **Revision** | **Date** | **Description** |
47-
| ------------ | ---------- | --------------- |
48-
| 0.1/1 | 2022/09/17 | Initial draft |
49-
50-
---
42+
--------------------------------------------------------------------------------
43+
**Version** **Date** **Description**
44+
----------- ---------- ---------------------------------------------------------
45+
0.1 2024/01/29 Initial draft
46+
--------------------------------------------------------------------------------
5147

5248
# Document Style
5349

@@ -72,6 +68,7 @@ comment_, it can be considered a _normative statement_.
7268

7369
EXAMPLE:
7470

71+
::: Informative :::
7572
> This is the first paragraph of 1–n paragraphs containing text of the kind
7673
> informative comment ...
7774
>
@@ -81,6 +78,7 @@ EXAMPLE:
8178
>
8279
> To understand the TCG specification, the user must read the specification.
8380
> (This use of MUST does not require any action).
81+
:::::::::::::::::::
8482

8583
---
8684

spec.pdf

-329 KB
Binary file not shown.

0 commit comments

Comments
 (0)