Skip to content

Commit 1630efd

Browse files
authored
Merge pull request #23 from manthanank/new-changes
feat: added generate pdf yml
2 parents 71e0fbf + 83f4a4f commit 1630efd

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/generate-pdf.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
name: Generate PDF
1+
name: Generate PDF from Readme
22

33
on:
44
push:
55
branches:
6-
- main # Replace with your branch name if necessary
6+
- main # Change this to your default branch if necessary
77

88
jobs:
9-
build:
9+
generate-pdf:
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v2
15-
16-
- name: Setup Node.js
17-
uses: actions/setup-node@v2
18-
with:
19-
node-version: 14
20-
21-
- name: Install dependencies
22-
run: npm install markdown-pdf
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
2315

24-
- name: Generate PDF
25-
run: npx markdown-pdf README.md
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 14
20+
21+
- name: Install dependencies
22+
run: npm install markdown-pdf --global
23+
24+
- name: Generate PDF
25+
run: markdown-pdf readme.md --out assets/readme.pdf

0 commit comments

Comments
 (0)