All checks were successful
Render LaTeX and Publish Release / build (push) Successful in 1m3s
61 lines
1.5 KiB
YAML
61 lines
1.5 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: Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: |
|
|
cv.pdf
|
|
|
|
# - 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_name }}
|
|
# tag_name: ${{ github.ref_name }}
|
|
# 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
|