Skip to content

Add trinity

Add trinity #42

Workflow file for this run

---
name: CI
on:
push:
branches:
- "main"
jobs:
build-test:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Generate PDF document
if: ${{ !env.ACT }}
uses: hspaans/latexmk-action@v1
with:
format: pdf
filename: Rishi_Kumar_Resume.tex
- name: Release pdf
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: Rishi_Kumar_Resume.pdf
name: Rishi_Kumar_Resume.pdf
- name: Make a pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: Rishi_Kumar_Resume.pdf
- name: Install Poppler
if: ${{ !env.ACT }}
run: |
sudo apt-get update
sudo apt-get install -y poppler-utils
- name: Convert PDF to PNG
if: ${{ !env.ACT }}
run: |
if [Rishi_Kumar_Resume.png]
then
rm Rishi_Kumar_Resume.png
fi
pdftoppm -png Rishi_Kumar_Resume.pdf Rishi_Kumar_Resume
mv Rishi_Kumar_Resume-1.png Rishi_Kumar_Resume.png
- name: Check for changes
id: check_changes
run: |
if [[ -n $(git status -s) ]]; then
echo "Changes detected. Committing and pushing..."
echo "change=true" >> $GITHUB_OUTPUT
else
echo "No changes detected. Skipping commit and push."
echo "change=false" >> $GITHUB_OUTPUT
fi
- name: Commit and push changes
if: steps.check_changes.outputs.change
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add Rishi_Kumar_Resume.png
git commit -m "Add PNG image"
git push