diff --git a/.gitea/workflows/compile.yml b/.gitea/workflows/compile.yml new file mode 100644 index 0000000..77bf40b --- /dev/null +++ b/.gitea/workflows/compile.yml @@ -0,0 +1,29 @@ +name: build pdf +on: [push,watch] + +jobs: + build: + runs-on: macos # use label + + steps: + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Compile LaTeX using local TeX Live + # These commands run directly in your machine's shell + run: | + echo "Compiling document..." + latexmk -pdf main.tex + + - name: List files in the workspace + run: ls -l + + - uses: akkuman/gitea-release-action@v1 + with: + body: '' + prerelease: true + name: PDF + token: ${{ secrets.RELEASE_TOKEN }} + tag_name: latest + files: |- + ./*.pdf diff --git a/.gitignore b/.gitignore index 5cef906..182e9ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .vscode/ *.sage.py +/*.pdf ## Core latex/pdflatex auxiliary files: *.aux *.lof diff --git a/main.pdf b/main.pdf deleted file mode 100644 index 16061cd..0000000 Binary files a/main.pdf and /dev/null differ