Skip to content

Commit

Permalink
Separate into jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrp authored Jan 24, 2022
1 parent 2e87ea9 commit e9c07e9
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,32 @@ on: push

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
release:
# The type of runner that the job will run on
build:
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: LaTeX compilation
uses: dante-ev/latex-action@2021-A
with:
# The root LaTeX file to be compiled
root_file: cv.tex
# LaTeX engine to be used
compiler: xelatex

- uses: actions/upload-artifact@v2
with:
name: cv
path: cv.pdf

release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: build
steps:
- uses: actions/download-artifact@v2
with:
name: cv
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
cv.pdf

0 comments on commit e9c07e9

Please sign in to comment.