Skip to content

Commit

Permalink
Create CI worklflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikmaeckel authored Oct 16, 2024
1 parent bdc86f8 commit 05211c1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Package LaTeX DTX and INS Files

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

container:
image: texlive/texlive:latest

steps:
- name: Install requirements
run: |
apt-get update
apt-get install -y zip
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run LaTeX INS file
run: latex cmftbl.ins

- name: Build PDF from DTX
run: latexmk -pdf cmftbl.dtx

- name: Create ZIP archive for CTAN
run: |
mkdir ctan-upload
cp cmftbl.dtx ctan-upload/
cp cmftbl.ins ctan-upload/
cp cmftbl.pdf ctan-upload/
cd ctan-upload
zip ../cmftbl.zip *
- name: Upload ZIP file
uses: actions/upload-artifact@v4
with:
name: package
path: cmftbl.zip

0 comments on commit 05211c1

Please sign in to comment.