From e9c07e9067779fb9cd02086594d1aedd8579c3ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Greguri=C4=87=20Ortolan?= Date: Tue, 25 Jan 2022 00:09:31 +0100 Subject: [PATCH] Separate into jobs --- .github/workflows/main.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f55af08..38e3410 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,16 +7,10 @@ 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: @@ -24,10 +18,21 @@ jobs: 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