Skip to content

Commit

Permalink
Merge pull request #3 from TrustedComputingGroup/test-pr
Browse files Browse the repository at this point in the history
Re-do actions, update pandoc
  • Loading branch information
chrisfenner authored Jan 29, 2024
2 parents 75a5a31 + 0f0243c commit 597690a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 51 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Render the spec to PDF and Word on pull requests and releases, attaching the
# outputs to the pull request / release, as appropriate.

name: Render spec

on:
pull_request:
release:
types: [published]

jobs:
render:
runs-on: ubuntu-latest
container:
image: ghcr.io/trustedcomputinggroup/pandoc:0.8.1
name: Render PDF
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Render
uses: trustedcomputinggroup/[email protected]
with:
extra-build-options: "--gitstatus --plain_quotes"
input-md: spec.md
output-pdf: spec.pdf
output-docx: spec.docx

- name: Upload PDF to PR
uses: actions/upload-artifact@master
if: ${{ github.event_name == 'pull_request' }}
with:
name: spec
path: spec.pdf

- name: Upload PDF and docx to release
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name == 'release' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: spec.*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
42 changes: 0 additions & 42 deletions .github/workflows/main.yml

This file was deleted.

16 changes: 7 additions & 9 deletions main.md → spec.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: "Document Title"
version: 0.1
revision: 1
date: 2022/09/17
type: SPECIFICATION
status: DRAFT
...

---
Expand Down Expand Up @@ -43,11 +39,11 @@ owners.

# Change History

| **Revision** | **Date** | **Description** |
| ------------ | ---------- | --------------- |
| 0.1/1 | 2022/09/17 | Initial draft |

---
--------------------------------------------------------------------------------
**Version** **Date** **Description**
----------- ---------- ---------------------------------------------------------
0.1 2024/01/29 Initial draft
--------------------------------------------------------------------------------

# Document Style

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

EXAMPLE:

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

---

Expand Down
Binary file removed spec.pdf
Binary file not shown.

0 comments on commit 597690a

Please sign in to comment.