Skip to content

Commit

Permalink
Simplify checkout (#52)
Browse files Browse the repository at this point in the history
No need for extra checkouts
  • Loading branch information
lucaskjaero authored Jan 2, 2020
1 parent 9585415 commit 9a4759c
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,33 @@ jobs:
name: Build resume
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: master
- name: Install latex and fonts
run: sudo apt-get install texlive-xetex fonts-arphic-gbsn00lp fonts-wqy-zenhei fonts-arphic-gkai00mp latex-cjk-all
- name: Compile English resume
run: xelatex -file-line-error -interaction=nonstopmode -recorder lucas-kjaero-zhang-resume.tex
working-directory: resume
- name: Compile Chinese resume
run: xelatex -file-line-error -interaction=nonstopmode -recorder lucas-kjaero-zhang-个人简历.tex
working-directory: resume
- uses: actions/upload-artifact@master
with:
name: lucas-kjaero-zhang-resume.pdf
path: resume/lucas-kjaero-zhang-resume.pdf
- uses: actions/upload-artifact@master
with:
name: lucas-kjaero-zhang-个人简历.pdf
path: resume/lucas-kjaero-zhang-个人简历.pdf
- uses: actions/checkout@master
with:
ref: master
- name: Install latex and fonts
run: sudo apt-get install texlive-xetex fonts-arphic-gbsn00lp fonts-wqy-zenhei fonts-arphic-gkai00mp latex-cjk-all
- name: Compile English resume
run: xelatex -file-line-error -interaction=nonstopmode -recorder lucas-kjaero-zhang-resume.tex
working-directory: resume
- name: Compile Chinese resume
run: xelatex -file-line-error -interaction=nonstopmode -recorder lucas-kjaero-zhang-个人简历.tex
working-directory: resume
- uses: actions/upload-artifact@master
with:
name: lucas-kjaero-zhang-resume.pdf
path: resume/lucas-kjaero-zhang-resume.pdf
- uses: actions/upload-artifact@master
with:
name: lucas-kjaero-zhang-个人简历.pdf
path: resume/lucas-kjaero-zhang-个人简历.pdf

build-frontend:
name: Build frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: master
- uses: actions/setup-node@v1
name: Install node
with:
Expand All @@ -55,7 +57,6 @@ jobs:
needs: [build-resume, build-frontend]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: gatsby-public
Expand Down Expand Up @@ -84,9 +85,6 @@ jobs:
needs: [build-resume, build-frontend]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: master
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
Expand Down

0 comments on commit 9a4759c

Please sign in to comment.