Some checks failed
Render LaTeX and Publish Release / build (push) Failing after 57s
55 lines
1.3 KiB
YAML
55 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: joshuacoles/setup-tectonic@main
|
|
name: Setup Tectonic
|
|
with:
|
|
github-token: ${{ secrets.COM_DOT_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: ${{ gitea.ref }}
|
|
tag_name: ${{ gitea.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
|