added infosec traits #25
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
name: CI | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install OS dependencies | |
run: | | |
sudo apt install texlive-xetex unzip -y | |
- name: Install fonts | |
run: | | |
wget https://assets.ubuntu.com/v1/0cef8205-ubuntu-font-family-0.83.zip -O fonts.zip | |
unzip fonts.zip | |
sudo cp -r ubuntu-font-family*/*.ttf /usr/share/fonts/truetype/ | |
sudo chmod 755 /usr/share/fonts/truetype/Ubuntu*.ttf | |
- name: Build the project | |
run: | | |
xelatex Resume.tex | |
mkdir artifacts | |
mv Resume.pdf artifacts | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
export CURRENT_DATE=`date '+%Y%m%d%H%M%S'` | |
gh release create "$CURRENT_DATE" | |
gh release upload "$CURRENT_DATE" "artifacts/Resume.pdf" |