Ballot SC-070: Clarify the use of DTPs for domain control validation #500
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 Draft Guidelines | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build_docs: | |
strategy: | |
matrix: | |
document: | |
- 'BR' | |
- 'EVG' | |
- 'NSR' | |
name: Build ${{ matrix.document }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v3 | |
- name: Checkout old version for redline | |
if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.base.sha || github.event.push.before }} | |
path: old/ | |
- uses: docker://ghcr.io/cabforum/build-guidelines-action:2.1.0 | |
id: build_doc | |
with: | |
markdown_file: docs/${{ matrix.document }}.md | |
diff_file: old/docs/${{ matrix.document }}.md | |
pdf: true | |
docx: true | |
lint: true | |
draft: ${{ !(github.event_name == 'push' && github.repository == 'cabforum/servercert' && github.ref == 'refs/heads/main') }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.document }}-${{ 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' |