-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added compilation, release and upload of the CV
- Loading branch information
1 parent
d3b4a15
commit a4e86e5
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Generate CV | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v.*" | ||
|
||
jobs: | ||
build-cv: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
sparse-checkout: | | ||
cv.tex | ||
- name: Update dependencies | ||
run: sudo apt-get update -q | ||
- name: Install LaTeX | ||
run: >- | ||
sudo apt-get install -yq texlive texlive-fonts-extra | ||
- name: Compile CV from source | ||
run: | ||
pdflatex cv.tex | ||
- name: Create release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload CV to release | ||
uses: actions/upload-release-asset@v1 | ||
id: upload-asset | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_name: cv.pdf | ||
asset_path: ./cv.pdf | ||
asset_content_type: application/pdf |