Skip to content

Commit

Permalink
update and cleanup GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmc committed Jan 22, 2024
1 parent d329073 commit 9da287e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/compileandrelease.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
name: Compile Latex and Release PDF
---
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
uses: actions/checkout@v4
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
uses: xu-cheng/latex-action@v3
with:
root_file: mc_cv.tex

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -28,12 +29,12 @@ jobs:
prerelease: false

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

0 comments on commit 9da287e

Please sign in to comment.