Skip to content

Update latex-action version from 2 to 3 #73

Update latex-action version from 2 to 3

Update latex-action version from 2 to 3 #73

Workflow file for this run

name: Release
on:
push:
tags:
- "*.*.*"
jobs:
create_release:
name: Create release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
release_disser:
name: Release dissertation to GitHub
needs: create_release
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: |
main.tex
thesis.tex
presentation.tex
issc.tex
skif_ml_meetup.tex
lab_seminar.tex
abstract.tex
poster.tex
- name: Upload Release Asset (disser) to GitHub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: main.pdf
asset_name: ${{ github.event.repository.name }}-${{ github.ref_name }}.pdf
asset_content_type: pdf
- name: Upload Release Asset (thesis) to GitHub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: thesis.pdf
asset_name: ${{ github.event.repository.name }}-thesis-${{ github.ref_name }}.pdf
asset_content_type: pdf
- name: Upload Release Asset (presentation) to GitHub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: presentation.pdf
asset_name: ${{ github.event.repository.name }}-presentation-${{ github.ref_name }}.pdf
asset_content_type: pdf
- name: Upload Release Asset (issc) to GitHub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: issc.pdf
asset_name: ${{ github.event.repository.name }}-issc-${{ github.ref_name }}.pdf
asset_content_type: pdf
- name: Upload Release Asset (skif ml meetup) to GitHub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: skif_ml_meetup.pdf
asset_name: ${{ github.event.repository.name }}-skif_ml_meetup-${{ github.ref_name }}.pdf
asset_content_type: pdf
- name: Upload Release Asset (lab seminar) to GitHub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: lab_seminar.pdf
asset_name: ${{ github.event.repository.name }}-lab_seminar-${{ github.ref_name }}.pdf
asset_content_type: pdf
- name: Upload Release Asset (abstract) to GitHub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: abstract.pdf
asset_name: ${{ github.event.repository.name }}-abstract-${{ github.ref_name }}.pdf
asset_content_type: pdf
- name: Upload Release Asset (poster) to GitHub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: poster.pdf
asset_name: ${{ github.event.repository.name }}-poster-${{ github.ref_name }}.pdf
asset_content_type: pdf