CI: fix release #2
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: Build and Release Resume | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # Required for creating releases and accessing repository contents | |
id-token: write # Required for authentication and access | |
actions: write # Required for workflow-related actions | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup TeX Live | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: main.tex | |
- name: Rename Output File | |
run: | | |
mv main.pdf Anish_Shobith_P_S_Resume.pdf | |
- name: Create Release | |
if: github.ref == 'refs/heads/main' | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: false | |
prerelease: false | |
tag_name: "v{{ github.run_id }}" | |
name: "Resume Release - ${{ github.run_id }}" | |
body: "Resume Release - ${{ github.run_id }}" | |
generate_release_notes: false | |
files: | | |
Anish_Shobith_P_S_Resume.pdf | |
token: ${{ secrets.GITHUB_TOKEN }} |