Skip to content

upload to release

upload to release #24

name: LaTeX Build and Upload
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker Image
run: |
docker buildx build \
--load \
--cache-from=type=local,src=/tmp/.buildx-cache \
--cache-to=type=local,dest=/tmp/.buildx-cache \
-t latex-build .
- name: Run Docker Container
run: docker run -v $(pwd):/latex_content --name latex-container latex-build /bin/sh -c "make pdf"
- name: Copy PDF from Docker Container
run: docker cp latex-container:/latex_content/rendered.pdf output.pdf
- name: Upload PDF as Artifact
uses: actions/upload-artifact@v4
with:
name: compiled-pdf
path: output.pdf
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
if: ${{ contains(github.ref, "release") }}

Check failure on line 45 in .github/workflows/github_action_build.yml

View workflow run for this annotation

GitHub Actions / LaTeX Build and Upload

Invalid workflow file

The workflow is not valid. .github/workflows/github_action_build.yml (Line: 45, Col: 13): Unexpected symbol: '"release"'. Located at position 22 within expression: contains(github.ref, "release")
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: output.pdf
asset_name: esteban_martinena_cv.pdf
tag: ${{ github.ref }}
overwrite: true
body: "Latest version of my CV."