Skip to content

Commit

Permalink
Merge pull request #47 from supcik/action
Browse files Browse the repository at this point in the history
Add Github Action to automatically build the PDF.
  • Loading branch information
fabriziotappero authored Jan 8, 2024
2 parents 1f6cda3 + fc6a266 commit a3f1a02
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/actions/latex/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM mrchoke/texlive:2023.9

RUN apt update && apt install -y fonts-arkpandora fonts-liberation2
COPY entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
6 changes: 6 additions & 0 deletions .github/actions/latex/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "LaTeX processor"
description: "LaTeX processor"

runs:
using: "docker"
image: "Dockerfile"
3 changes: 3 additions & 0 deletions .github/actions/latex/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh -l

bash ./compile
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build Book
on:
push:
tags:
- '*'

jobs:
build_book:
name: Build book
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Make book
uses: ./.github/actions/latex
- name: Uploadartifacts
uses: actions/upload-artifact@v3
with:
name: free_range_vhdl
path: free_range_vhdl.pdf
retention-days: 15

0 comments on commit a3f1a02

Please sign in to comment.