-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃懛 Simple gitaction for auto PDF creation #33
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Wersje tekstowe to PDF | ||
# This workflow is triggered on pushes to the repository. | ||
on: | ||
push: | ||
branches: | ||
- main | ||
# Paths can be used to only trigger actions when you have edited certain files, such as a file within the /docs directory | ||
paths: | ||
- 'wersje tekstowe/**.md' | ||
- 'wersje tekstowe/images/**' | ||
|
||
jobs: | ||
converttopdf: | ||
name: Build PDF | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: baileyjm02/markdown-to-pdf@v1.2.0 | ||
with: | ||
input_dir: wersje tekstowe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
https://github.com/BaileyJM02/markdown-to-pdf#github-action-inputs |
||
output_dir: wersje pdf | ||
images_dir: wersje tekstowe/images | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe stick to Polish and change There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would also consider removing empty spaces from file and directory names. |
||
# for example <img src="./images/file-name.png"> | ||
image_import: ./images | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bior膮c pod uwag臋, 偶e w projekcie nie ma 偶adnych obrazk贸w -> mo偶e konfiguracj臋聽dla obrazk贸w mo偶na pomin膮膰? |
||
# Default is true, can set to false to only get PDF files | ||
build_html: false | ||
build_pdf: true | ||
- uses: actions/upload-artifact@v3.1.2 | ||
with: | ||
name: Ustawy o PIT | ||
path: wersje pdf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe let's stick to polish or english lang.