Skip to content

cil: deep neural networks #92

cil: deep neural networks

cil: deep neural networks #92

Workflow file for this run

# To add a file that needs to be compiled, do all the steps marked by (*)
name: Github Actions CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
# (*) To add a file, add the following section for it
- name: Compile natural language processing summary
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
working_directory: natural_language_processing
- name: Compile computer vision summary
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
working_directory: computer_vision
- name: Compile probabilistic artificial intelligence
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
latexmk_shell_escape: true
working_directory: probabilistic_artificial_intelligence
- name: Compile algorithms lab
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
working_directory: algorithms_lab
- name: Compile optimization for data science summary
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
latexmk_shell_escape: true
working_directory: optimization_for_data_science/summary
- name: Compile optimization for data science cheatsheet
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
latexmk_shell_escape: true
working_directory: optimization_for_data_science/cheatsheet
- name: Compile machine perception summary
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
latexmk_shell_escape: true
working_directory: machine_perception/summary
- name: Compile machine perception cheatsheet
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
latexmk_shell_escape: true
working_directory: machine_perception/cheatsheet
- name: Compile computational intelligence lab recap
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
latexmk_shell_escape: true
working_directory: computational_intelligence_lab/recap
- name: Compile computational intelligence lab summary
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
latexmk_shell_escape: true
working_directory: computational_intelligence_lab/summary
# (*) To add a file, add the PDF filename to the following
- name: Check PDF files
run: |
file natural_language_processing/main.pdf | grep -q ' PDF '
file computer_vision/main.pdf | grep -q ' PDF '
file probabilistic_artificial_intelligence/main.pdf | grep -q ' PDF '
file algorithms_lab/main.pdf | grep -q ' PDF '
file optimization_for_data_science/summary/main.pdf | grep -q ' PDF '
file optimization_for_data_science/cheatsheet/main.pdf | grep -q ' PDF '
file machine_perception/summary/main.pdf | grep -q ' PDF '
file machine_perception/cheatsheet/main.pdf | grep -q ' PDF '
file computational_intelligence_lab/recap/main.pdf | grep -q ' PDF '
file computational_intelligence_lab/summary/main.pdf | grep -q ' PDF '
- name: Upload to GitHub pages
run: |
git config --global user.name "Cristian Perez Jensen"
git config --global user.email "[email protected]"
mkdir ~/.ssh
chmod 700 ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
git config --global core.sshCommand "ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
git clone --depth=1 --branch gh-pages [email protected]:cristianpjensen/eth-cs-notes.git "$GITHUB_WORKSPACE/deploy"
# (*) To add a file, add the following command for that file
cp -f natural_language_processing/main.pdf "$GITHUB_WORKSPACE/deploy/natural_language_processing-summary.pdf"
cp -f computer_vision/main.pdf "$GITHUB_WORKSPACE/deploy/computer_vision-summary.pdf"
cp -f probabilistic_artificial_intelligence/main.pdf "$GITHUB_WORKSPACE/deploy/probabilistic_artificial_intelligence-summary.pdf"
cp -f algorithms_lab/main.pdf "$GITHUB_WORKSPACE/deploy/algorithms_lab-summary.pdf"
cp -f optimization_for_data_science/summary/main.pdf "$GITHUB_WORKSPACE/deploy/optimization_for_data_science-summary.pdf"
cp -f optimization_for_data_science/cheatsheet/main.pdf "$GITHUB_WORKSPACE/deploy/optimization_for_data_science-cheatsheet.pdf"
cp -f machine_perception/summary/main.pdf "$GITHUB_WORKSPACE/deploy/machine_perception-summary.pdf"
cp -f machine_perception/cheatsheet/main.pdf "$GITHUB_WORKSPACE/deploy/machine_perception-cheatsheet.pdf"
cp -f computational_intelligence_lab/recap/main.pdf "$GITHUB_WORKSPACE/deploy/computational_intelligence_lab-recap.pdf"
cp -f computational_intelligence_lab/summary/main.pdf "$GITHUB_WORKSPACE/deploy/computational_intelligence_lab-summary.pdf"
cd "$GITHUB_WORKSPACE/deploy"
# (*) To add a file, add it to the branch
git add natural_language_processing-summary.pdf
git add computer_vision-summary.pdf
git add probabilistic_artificial_intelligence-summary.pdf
git add algorithms_lab-summary.pdf
git add optimization_for_data_science-summary.pdf
git add optimization_for_data_science-cheatsheet.pdf
git add machine_perception-summary.pdf
git add machine_perception-cheatsheet.pdf
git add computational_intelligence_lab-recap.pdf
git add computational_intelligence_lab-summary.pdf
git commit -m "[github actions] deploy"
git push
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}