misc: add GitHub deploy action

This commit is contained in:
Yangshun
2021-05-30 15:01:25 +08:00
parent 035dca5e3d
commit a7ac2296ac
3 changed files with 65 additions and 1 deletions

55
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,55 @@
name: deploy
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
checks:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Test Build
run: |
cd website
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build
gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Deploy to GitHub Pages
env:
USE_SSH: true
GIT_USER: git
run: |
git config --global user.email "actions@github.com"
git config --global user.name "gh-actions"
cd website
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run deploy

View File

@ -35,7 +35,7 @@ There is a delicate balance between finding the right job vs. finding a job. Get
When hiring fresh grads, I know that many of them will not have as much experience as someone who has years of industry experience. Hence, I would look out more for soft skills, such as attention to detail, initiative, passion, ability to get things done, etc. Note: this applies only if you have met the minimum threshold of proficiency/competency in the skill set checklist. When hiring fresh grads, I know that many of them will not have as much experience as someone who has years of industry experience. Hence, I would look out more for soft skills, such as attention to detail, initiative, passion, ability to get things done, etc. Note: this applies only if you have met the minimum threshold of proficiency/competency in the skill set checklist.
## 10 ways To improve your resume ## 10 ways to improve your resume
Now that you are aware of how recruiters screen your resume, here are 10 actionable ways you can do to improve your resume. Now that you are aware of how recruiters screen your resume, here are 10 actionable ways you can do to improve your resume.

View File

@ -175,6 +175,15 @@ function Home() {
</div> </div>
</div> </div>
))} ))}
<p className="margin-vert--lg text--center">
Would you like to contribute a success story?{' '}
<a
href="https://github.com/yangshun/tech-interview-handbook/edit/master/website/src/data/successStories.js"
target="_blank">
Open a Pull Request here
</a>
!
</p>
</div> </div>
</div> </div>
</div> </div>