Browse Source

Update build-pdf.yml

pull/216/head
jiayouba233 4 years ago
committed by GitHub
parent
commit
fd4e04f04f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 37
      .github/workflows/build-pdf.yml

37
.github/workflows/build-pdf.yml

@ -1,21 +1,32 @@
name: Convert PDF to Markdown
on:
push:
paths:
- 'doc/**'
name: CreatePDFs
- '**.md'
jobs:
makepdfs:
convert_md:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: mkrakowitzer/actions-makepdfs@master
if: github.ref == 'refs/heads/master'
with:
markdown_dir: doc
output_dir: tmp
- uses: actions/upload-artifact@v1
# We must checkout the latest version of the code to get a copy of all .md files
- name: Checkout Code
uses: actions/[email protected]
with:
name: platform-architecture-docs
path: tmp
fetch-depth: 1
- name: Create .pdfs
uses: scottypate/[email protected]
env: {
# Use this parameter to determine where the generated .pdf(s) will be stored.
PDF_DIR: './pdfs'
}
- name: Create Pull Request
uses: peter-evans/[email protected]
env:
# The token is built in to actions. No config required.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MESSAGE: Add .pdf files.
PULL_REQUEST_TITLE: Add .pdf files.
PULL_REQUEST_BRANCH: pdf-add
PULL_REQUEST_BODY: :wave: Run.pdf
PULL_REQUEST_REVIEWERS: scottypate

Loading…
Cancel
Save