Merge branch 'main' of https://github.com/MasterZesty/Resume into main #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
# CI/CD Pipeline for BE Resume | |
name: be-resume-pipeline | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '3-backend-resume/**' | |
- '.github/workflows/**' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
Build_BE_Resume: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Set up LaTeX | |
uses: xu-cheng/latex-action@v2 | |
with: | |
working_directory: 3-backend-resume | |
root_file: main.tex | |
- name: Rename file | |
run: | | |
sudo mv 3-backend-resume/main.pdf 3-backend-resume/Krishna_Nimbalkar_BE_Resume.pdf | |
- name: Copy file | |
run: | | |
sudo mv 3-backend-resume/Krishna_Nimbalkar_BE_Resume.pdf pdfjs/resume | |
- name: Get current date | |
id: date | |
run: | | |
echo "::set-output name=date::$(date +'%d_%m_%Y_%H_%M_%S')" | |
- name: Create BE Resume Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: BE_Resume_${{ steps.date.outputs.date }} | |
release_name: Krishna Nimbalkar BE Resume | |
body: | | |
Resume Last Updated on : ${{ steps.date.outputs.date }} | |
draft: false | |
prerelease: false | |
- name: Upload Resume Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: pdfjs/resume/Krishna_Nimbalkar_BE_Resume.pdf | |
asset_name: Krishna_Nimbalkar_BE_Resume.pdf | |
asset_content_type: application/pdf | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update BE Resume | |
- name: Deploy to gh-pages | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: pdfjs | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MESSAGE: "deploy website" |