cv/.github/workflows/build.yml
Joshua Coles 8163031f75
Some checks failed
Render LaTeX and Publish Release / build (push) Failing after 16s
Lets try manually adding the openssl package
2024-06-05 19:31:27 +01:00

58 lines
1.4 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: joshuacoles/setup-tectonic@main
name: Setup Tectonic
with:
github-token: ${{ secrets.COM_DOT_GITHUB_TOKEN }}
- name: Run Tectonic
run: |
apt update
apt install openssl -y
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