Skip to content

Commit 430b49a

Browse files
committed
cache v4
1 parent 80dc8e1 commit 430b49a

2 files changed

Lines changed: 53 additions & 56 deletions

File tree

.github/workflows/ci.yml

Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,56 @@
11
name: ci
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- master
8-
pull_request:
9-
branches:
10-
- main
11-
- master
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
branches:
10+
- main
11+
- master
1212

1313
jobs:
14-
ci:
15-
runs-on: ${{ matrix.os }}
16-
17-
strategy:
18-
matrix:
19-
os: [ubuntu-latest]
20-
node: [18]
21-
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@master
25-
26-
- name: Setup node env
27-
uses: actions/setup-node@v2.1.2
28-
with:
29-
node-version: ${{ matrix.node }}
30-
31-
- name: Cache node_modules
32-
uses: actions/cache@v2
33-
with:
34-
path: ~/.npm ${{ github.workspace }}/.next/cache
35-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
36-
restore-keys: |
37-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
38-
39-
- name: Install dependencies
40-
run: npm ci
41-
42-
- name: Build
43-
run: npm run build
44-
45-
- name: Deploy
46-
uses: peaceiris/actions-gh-pages@v3
47-
with:
48-
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
publish_dir: ./out
50-
cname: edt.nz
51-
52-
53-
# - name: Run lint
54-
# run: npm run lint
55-
56-
# - name: Run tests
57-
# run: npm run test
14+
ci:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
node: [18]
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@master
25+
26+
- name: Setup node env
27+
uses: actions/setup-node@v2.1.2
28+
with:
29+
node-version: ${{ matrix.node }}
30+
31+
- name: Cache node_modules
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.npm ${{ github.workspace }}/.next/cache
35+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
36+
restore-keys: |
37+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
38+
39+
- name: Install dependencies
40+
run: npm ci
41+
42+
- name: Build
43+
run: npm run build
44+
45+
- name: Deploy
46+
uses: peaceiris/actions-gh-pages@v3
47+
with:
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
49+
publish_dir: ./out
50+
cname: edt.nz
51+
52+
# - name: Run lint
53+
# run: npm run lint
54+
55+
# - name: Run tests
56+
# run: npm run test

src/components/cv.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Separator } from 'src/lib/separator'
33
export const Skills: React.FC = () =>
44
<>
55

6-
<a style={{ textAlign: 'end', display: 'block' }} className='not-print' href='cv.pdf'>Download this page</a>
6+
<a style={{ textAlign: 'end', display: 'block' }} className='not-print' href='cv.pdf'>Download PDF</a>
77

88
<h1>Skills</h1>
99

@@ -93,7 +93,6 @@ export const Skills: React.FC = () =>
9393

9494
<h1>Education</h1>
9595

96-
9796
<div style={{ display: 'flex', flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'space-around' }}>
9897
<div style={{ width: '40%', minWidth: 300 }} >
9998
<h3>Victoria University of Wellington <i style={{ fontSize: 14, display: 'block' }}>2019</i></h3>
@@ -107,7 +106,7 @@ export const Skills: React.FC = () =>
107106
<a href='https://edt.nz/transcript.pdf'>Download Transcript</a> <br />
108107
</div>
109108
<div style={{ width: '40%', minWidth: 300 }} >
110-
<h3>Canterbury University <i style={{ fontSize: 14, display: 'block' }}>2016</i></h3>
109+
<h3>Canterbury University <i style={{ fontSize: 14, display: 'block' }}>2014 - 2016</i></h3>
111110
<h4>
112111
Bachelor of Science (Incomplete) (Computer Science)
113112
</h4>
@@ -116,7 +115,6 @@ export const Skills: React.FC = () =>
116115
</div>
117116
</div>
118117

119-
120118
{/* <h3>Rendering & Interaction</h3>
121119
As shown in my visual work, I love leveraging the potential of technology to create art that reacts to its environment.
122120
<ul>

0 commit comments

Comments
 (0)