forked from qinlili23333/caj2pdf-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 746 Bytes
/
Copy pathmain.yml
File metadata and controls
28 lines (28 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: caj2pdf
on: push
jobs:
ConvertActions:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: preload env cmd
shell: cmd
run: |
pip install pypdf2
pip install imagesize
curl https://mupdf.com/downloads/archive/mupdf-1.18.0-windows.zip -o mupdf.zip -L
- name: preload env ps
shell: powershell
run: |
Expand-Archive mupdf.zip -DestinationPath .\
move mupdf-1.18.0-windows\mutool.exe .\
- name: process caj
shell: cmd
run: |
python caj2pdf convert file.caj -o output.pdf
- name : Upload artifact
uses: actions/upload-artifact@master
with:
name: Output
path: output.pdf