Skip to content

Commit

Permalink
Merge pull request #8 from LaTeXUy/jorgepz-patch-1
Browse files Browse the repository at this point in the history
Create CILaTeX.yml
  • Loading branch information
jorgepz authored Dec 1, 2021
2 parents 26857a0 + 559437c commit 2101410
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/CILaTeX.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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: testAction.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: ./testAction.pdf
asset_name: testAction.pdf
asset_content_type: pdf

0 comments on commit 2101410

Please sign in to comment.