Skip to content

Commit baf6f87

Browse files
committed
Add a deploy workflow
1 parent 807b9d3 commit baf6f87

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
deploy:
13+
name: Deploy to GitHub Pages
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: yarn
21+
22+
- name: Install dependencies
23+
run: yarn install
24+
- name: Build website
25+
run: yarn build
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./dist/static
32+
user_name: github-actions[bot]
33+
user_email: 41898282+github-actions[bot]@users.noreply.github.com

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# josh-cena.github.io
2+
3+
If you want to find my old website and its code, you can find them [here](https://joshcena.com/old-website/) and [here](https://github.com/Josh-Cena/old-website/).

project-words.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ luo
1010
mdast
1111
mdxjs
1212
noninteractive
13+
noreply
14+
peaceiris
1315
pipeable
1416
saturationl
1517
scrolly

0 commit comments

Comments
 (0)