Update dhirendra-pratap-singh-resume.cls #36
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: Compile LaTeX document | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write # Explicitly set the permission for the GITHUB_TOKEN | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' # Use Node.js 20 or latest | |
- name: Set up LaTeX | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: dhirendra-pratap-singh-resume.tex | |
compiler: xelatex | |
args: -output-directory=output # Specify output directory | |
- name: Copy index.html to output | |
run: cp index.html output/index.html # Copy index.html to output directory | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./output # Directory containing your compiled PDF | |
destination_dir: ./ # Directory where the site will be hosted |