Skip to content

Commit

Permalink
fe pipeline test
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterZesty committed Dec 3, 2023
1 parent c263fb6 commit fdccc38
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/be-resume-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
36 changes: 22 additions & 14 deletions .github/workflows/fe-resume-pipeline.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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"
- 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"

0 comments on commit fdccc38

Please sign in to comment.