Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-do actions, update pandoc #3

Merged
merged 3 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/markdown@v0.4.2
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.
Loading