Skip to content

chore: name second step #51

chore: name second step

chore: name second step #51

Workflow file for this run

on: [push]
permissions:
contents: write
jobs:
build_latex:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v5

Check failure on line 9 in .github/workflows/texml.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/texml.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
- name: Install texml
- run: |
sudo apt-get update -y
mkdir -p ./build
sudo sh ./texml.sh
cd build
git clone https://github.com/AmerMathSoc/texml.git
cp ./texml/cfg/texml.cfg.template ./texml/cfg/texml.cfg
chmod a+x ./build/texml/bin/texml
- name: Generated PDF and XML
- run: |
rm -f main.aux
pdflatex main.tex
./build/texml/bin/texml main.tex
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install & run texml-to-html
run: |
cd build
npm install @amermathsoc/texml-to-html
cd ..
node ./build/node_modules/@amermathsoc/texml-to-html/examples/cli.js main.xml > main.html
rm -rf ./build
- run: |
# Commit
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: main xml&pdf&html regenerated"
git push
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}