cv/.github/workflows/build.yml
Joshua Coles c5a659f910
Some checks failed
Render LaTeX and Publish Release / build (push) Failing after 14s
Try make it build
2024-06-05 18:45:39 +01:00

53 lines
1.3 KiB
YAML

name: Render LaTeX and Publish Release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/cache@v3
name: Tectonic Cache
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
restore-keys: |
${{ runner.os }}-tectonic-
- uses: https://github.com/wtfjoke/setup-tectonic@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Tectonic
run: tectonic cv.tex
- name: create Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
# Ref will be tag in this context
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload assembled CV
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./cv.pdf
asset_name: cv.pdf
asset_content_type: application/pdf