-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (83 loc) · 2.54 KB
/
sde-resume-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: sde-resume-pipeline
on:
push:
branches: [ main ]
paths:
- '2-sde-resume/**'
- '.github/workflows/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Build_SDE_Resume:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: FileTree
run: |
ls
- name: Set up LaTeX
uses: xu-cheng/latex-action@v2
with:
working_directory: 2-sde-resume
root_file: main.tex
- name: FileTree
run: |
ls
- name: Rename file
run: |
sudo mv 2-sde-resume/main.pdf 2-sde-resume/Krishna_Nimbalkar_SDE_Resume.pdf
- name: Copy file
run: |
sudo mv 2-sde-resume/Krishna_Nimbalkar_SDE_Resume.pdf pdfjs/resume
- name: Get current date
id: date
run: |
echo "::set-output name=date::$(date +'%d/%m/%Y')"
- name: Create SDE Resume Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: SDE_Resume_${{ steps.date.outputs.date }}
release_name: Krishna Nimbalkar SDE 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_SDE_Resume.pdf
asset_name: Krishna_Nimbalkar_SDE_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"
- name: Push Resume to gh-pages
run: |
pwd
ls
mkdir temp
cd temp
git clone https://github.com/MasterZesty/Resume.git
cd Resume
pwd
ls
git checkout gh-pages
pwd
ls
sudo mv ../pdfjs/resume/Krishna_Nimbalkar_SDE_Resume.pdf temp/Resume/resume
git add .
git commit -m "add sde resume"
git push origin gh-pages