Skip to content

Create build.yml

Create build.yml #2

Workflow file for this run

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: 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-ctan.zip *
- name: Upload ZIP file
uses: actions/upload-artifact@v3
with:
name: ctan-upload
path: cmftbl.zip