Skip to content

Merge pull request #6 from kolosovpetro/develop #5

Merge pull request #6 from kolosovpetro/develop

Merge pull request #6 from kolosovpetro/develop #5

name: Build and Deploy PDF
on:
push:
branches:
- master
- main
jobs:
build-resume:
runs-on: ubuntu-latest
name: Create document
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Convert to pdf
id: convert-to-pdf
uses: xu-cheng/latex-action@v2
with:
root_file: AStudyOnDynamicEquations.tex
working_directory: src
- uses: actions/upload-artifact@v2
with:
name: PDF
path: AStudyOnDynamicEquations.pdf
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Clone repository and add document
run: |
git clone https://${{ secrets.GH_ACCESS_TOKEN }}@github.com/kolosovpetro/kolosovpetro.github.io.git ~/kolosovpetro.github.io
cp out/AStudyOnDynamicEquations.pdf ~/kolosovpetro.github.io/pdf/AStudyOnDynamicEquations.pdf
- name: Commit document changes if any
run: |
cd ~/kolosovpetro.github.io
git config --global user.name '${{ secrets.GH_NAME }}'
git config --global user.email '${{ secrets.GH_EMAIL }}'
git add .
git commit -am "CICD deploy from main repo"
git push