Skip to content

Commit

Permalink
Github action for PDF generation
Browse files Browse the repository at this point in the history
  • Loading branch information
martinweismann committed Oct 7, 2021
1 parent 73122da commit 20c079e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 54 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# It is used to create am easily distributable and printable PDF
# version of a specification document written in markdown (3MF-style).

# (outdated) Documentation:
# https://github.com/3MFConsortium/spec_conventions/blob/master/generatePDFs/generatePDFs.md

on: [pull_request]
name: Build
jobs:
build-linux:
runs-on: ubuntu-20.04
env:
SPECNAME: "3MF Core Specification"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: pip install wheel
- run: pip install grip
- run: ./markdownToPDF/install_wkhtmltopdf.sh
- run: ./markdownToPDF/mdToPDF.sh "$SPECNAME"
- name: Upload PDF
uses: actions/upload-artifact@v2
with:
name: ${{ env.SPECNAME }}.pdf
path: ${{ env.SPECNAME }}.pdf


54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

1 comment on commit 20c079e

@Sanny388cry
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.travis.yml

Please sign in to comment.