From a7ac2296ac1ffaa19029c843b07a59399face0e8 Mon Sep 17 00:00:00 2001 From: Yangshun Date: Sun, 30 May 2021 15:01:25 +0800 Subject: [PATCH] misc: add GitHub deploy action --- .github/workflows/deploy.yml | 55 ++++++++++++++++++++++++++++++++++++ contents/resume.md | 2 +- website/src/pages/index.js | 9 ++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..e2af7688 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/contents/resume.md b/contents/resume.md index a07513db..8786fc43 100644 --- a/contents/resume.md +++ b/contents/resume.md @@ -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. -## 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. diff --git a/website/src/pages/index.js b/website/src/pages/index.js index 9e388746..3c05da23 100755 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -175,6 +175,15 @@ function Home() { ))} +

+ Would you like to contribute a success story?{' '} + + Open a Pull Request here + + ! +