Create build.yml #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |