Skip to content

Merge pull request #65 from chhoumann/corrective-reading #54

Merge pull request #65 from chhoumann/corrective-reading

Merge pull request #65 from chhoumann/corrective-reading #54

name: "Build Pre-Thesis Document"
on:
push:
branches:
- main
paths:
- 'report_pre_thesis/**'
permissions:
contents: write
defaults:
run:
working-directory: report_pre_thesis
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
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: wtfjoke/setup-tectonic@v2
with:
github-token: ${{ secrets.github_token }}
- name: Run Tectonic
run: tectonic -X build
- name: Generate release tag
id: generate_release_tag
uses: amitsingh-007/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "report_pre_thesis/build/p9_report/p9_report.pdf"
name: ${{ github.event.head_commit.message }} (Pre-Thesis)
tag: ${{ steps.generate_release_tag.outputs.release_tag }}