Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
orensbruli committed Jan 4, 2024
1 parent 8c4f30a commit 6febca3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/github_action_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: LaTeX Build and Upload

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Build Docker Image
run: docker build -t latex-build .

- name: Run Docker Container
run: docker run --name latex-container latex-build

- name: Copy PDF from Docker Container
run: docker cp latex-container:/usr/src/app/output.pdf .

- name: Upload PDF as Artifact
uses: actions/upload-artifact@v2
with:
name: compiled-pdf
path: output.pdf

0 comments on commit 6febca3

Please sign in to comment.