Skip to content

Commit

Permalink
add workflow fille
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtrkmn committed Oct 26, 2020
1 parent 3c4c020 commit 7515333
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/compileandrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

name: Compile Latex and Release PDF


on:
push:
tags:
- '*.*.*'

jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./main.pdf
asset_name: main.pdf
asset_content_type: pdf

0 comments on commit 7515333

Please sign in to comment.