Skip to content

Commit

Permalink
Update deploy_sample.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemySazonov authored Aug 12, 2023
1 parent 6368580 commit 802889e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/deploy_sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build samples
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build_latex:
runs-on: ubuntu-latest
Expand All @@ -12,19 +15,10 @@ jobs:
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
working_directory: /
root_file: [ "*.tex" ]
root_file: sample.tex

- name: Upload PDF file to GitHub Action
uses: actions/upload-artifact@v3
with:
name: Sample resumes
name: Sample resume
path: sample.pdf

- name: Push to another branch
run: |
git fetch origin samples:samples
git checkout samples
git add *.pdf
git commit -m 'Updated the samples'
git push

0 comments on commit 802889e

Please sign in to comment.