Skip to content

Commit

Permalink
Update markdown-to-pdf.yml (#67)
Browse files Browse the repository at this point in the history
* Update markdown-to-pdf.yml

* Update markdown-to-pdf.yml

* Update markdown-to-pdf.yml

* Update markdown-to-pdf.yml

* Update markdown-to-pdf.yml

* Update markdown-to-pdf.yml

* Update markdown-to-pdf.yml
  • Loading branch information
jesseloudon authored Oct 20, 2024
1 parent a7302f4 commit 4aa7480
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/markdown-to-pdf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Document as Artifact
name: Generate PDF from README

on:
workflow_dispatch:
Expand All @@ -9,18 +9,25 @@ env:
jobs:
publish:
runs-on: ubuntu-latest
name: Publish Document
name: Generate PDF from README
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set Date
id: set_date
run: echo "DATE=$(date +'%m-%Y')" >> $GITHUB_ENV
- name: Publish PDF Document
uses: shrink/actions-document-publish@v1
uses: baileyjm02/markdown-to-pdf@v1
id: publish-document
with:
sources: 'README.md'
input_path: README.md
output_dir: generated
table_of_contents: false
build_html: false

- name: Upload Document
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
id: upload-document
with:
name: 'Awesome-Azure-Policy.pdf'
path: ${{ steps.publish-document.outputs.pdf }}
name: 'Awesome-Azure-Policy-${{ env.DATE }}'
path: generated

0 comments on commit 4aa7480

Please sign in to comment.