mirror of
https://github.com/NotXia/unibo-ai-notes.git
synced 2025-12-14 18:51:52 +01:00
🤖 It's hard to work with you
This commit is contained in:
48
.github/workflows/compile.yml
vendored
48
.github/workflows/compile.yml
vendored
@ -1,48 +0,0 @@
|
|||||||
name: Compile LaTeX
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
compile:
|
|
||||||
name: Compile notes
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repo
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install LaTeX
|
|
||||||
run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y latexmk texlive texlive-science texlive-latex-extra
|
|
||||||
|
|
||||||
- name: Compile
|
|
||||||
run: |
|
|
||||||
shopt -s globstar
|
|
||||||
work_dir=$(pwd)
|
|
||||||
mkdir /tmp/compiled
|
|
||||||
|
|
||||||
for f in **/[!_]*.tex; do
|
|
||||||
f_dir=$(dirname $f);
|
|
||||||
f_base=$(basename $f);
|
|
||||||
f_nameonly="${f_base%.*}";
|
|
||||||
|
|
||||||
cd ${f_dir};
|
|
||||||
latexmk -pdf -jobname=${f_nameonly} ${f_base};
|
|
||||||
mkdir -p /tmp/compiled/${f_dir}
|
|
||||||
mv ${f_nameonly}.pdf /tmp/compiled/${f_dir}/.
|
|
||||||
cd $work_dir;
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
- name: Move to pdfs branch
|
|
||||||
uses: s0/git-publish-subdir-action@develop
|
|
||||||
env:
|
|
||||||
REPO: self
|
|
||||||
BRANCH: pdfs
|
|
||||||
FOLDER: /tmp/compiled
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
MESSAGE: "🤖 It's hard to work with you"
|
|
||||||
21
LICENSE
21
LICENSE
@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2023 Tian Cheng Xia
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
BIN
statistical-and-mathematical-methods-for-ai/main.pdf
Normal file
BIN
statistical-and-mathematical-methods-for-ai/main.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user