Initial conversion CPS v3.26 to Markdown #48
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Documents | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build_docs: | |
strategy: | |
matrix: | |
document: | |
- "entrust" | |
name: Build Document ${{ matrix.document }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create tar.gz from templates directory contents | |
run: | | |
cd templates | |
tar -czvf ../templates.tar.gz * | |
- name: Create tar.gz from filters directory contents | |
run: | | |
cd filters | |
tar -czvf ../filters.tar.gz * | |
- name: Checkout old version for redline | |
if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }} | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.base.sha || github.event.push.before }} | |
path: old/ | |
- name: Link RFC references | |
run: | | |
python tools/rfc_links.py ${{ matrix.document }}.md | |
python tools/rfc_links.py old/${{ matrix.document }}.md | |
- name: Link CA/Browser Forum references | |
run: | | |
python tools/cabforum_links.py ${{ matrix.document }}.md | |
python tools/cabforum_links.py old/${{ matrix.document }}.md | |
- name: Build Document | |
uses: docker://ghcr.io/vanbroup/build-guidelines-action:sha-da5a4c61 | |
id: build_doc | |
with: | |
markdown_file: ${{ matrix.document }}.md | |
diff_file: old/${{ matrix.document }}.md | |
template: entrust-cps | |
templates_file: templates.tar.gz | |
filters_file: filters.tar.gz | |
pdf: true | |
docx: true | |
lint: true | |
draft: ${{ !(github.event_name == 'push' && github.repository == 'cabforum/servercert' && github.ref == 'refs/heads/main') }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.document }}-${{ steps.build_doc.outputs.file_version }}-${{ github.event.pull_request.head.sha || github.sha }}-${{ github.event_name }} | |
path: | | |
${{ steps.build_doc.outputs.pdf_file }} | |
${{ steps.build_doc.outputs.docx_file }} | |
${{ steps.build_doc.outputs.pdf_redline_file }} | |
if-no-files-found: "error" |