diff --git a/.github/workflows/be-resume-pipeline.yml b/.github/workflows/be-resume-pipeline.yml index 60cf96c..5a4400b 100644 --- a/.github/workflows/be-resume-pipeline.yml +++ b/.github/workflows/be-resume-pipeline.yml @@ -5,7 +5,7 @@ on: branches: [ main ] paths: - '3-backend-resume/**' - - '.github/workflows/**' + # - '.github/workflows/**' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/fe-resume-pipeline.yml b/.github/workflows/fe-resume-pipeline.yml index ee12591..4e79007 100644 --- a/.github/workflows/fe-resume-pipeline.yml +++ b/.github/workflows/fe-resume-pipeline.yml @@ -1,10 +1,11 @@ +# CI/CD Pipeline for FE Resume name: fe-resume-pipeline on: push: branches: [ main ] paths: - '4-frontend-resume/**' - # - '.github/workflows/**' + - '.github/workflows/**' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -23,18 +24,21 @@ jobs: with: working_directory: 4-frontend-resume root_file: main.tex - args: -jobname=Krishna_Nimbalkar_FE_Resume main.tex + + - name: Rename file + run: | + sudo mv 4-frontend-resume/main.pdf 4-frontend-resume/Krishna_Nimbalkar_FE_Resume.pdf - name: Copy file run: | - sudo mv 4-frontend-resume/Krishna_Nimbalkar_FE_Resume.pdf pdfjs + sudo mv 4-frontend-resume/Krishna_Nimbalkar_FE_Resume.pdf pdfjs/resume - name: Get current date id: date run: | - echo "::set-output name=date::$(date +'%d/%m/%Y')" + echo "::set-output name=date::$(date +'%d_%m_%Y_%H_%M_%S')" - - name: Create Resume Release + - name: Create FE Resume Release id: create_release uses: actions/create-release@v1 env: @@ -54,15 +58,19 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: pdfjs/Krishna_Nimbalkar_FE_Resume.pdf + asset_path: pdfjs/resume/Krishna_Nimbalkar_FE_Resume.pdf asset_name: Krishna_Nimbalkar_FE_Resume.pdf asset_content_type: application/pdf - # - 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" \ No newline at end of file + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Update FE 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"