Skip to content

Commit bcfcf5a

Browse files
Add GitHub Actions deploy workflow
1 parent d99a5f1 commit bcfcf5a

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
1314

14-
- uses: actions/setup-node@v3
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
1517
with:
16-
node-version: '18'
18+
node-version: '19'
1719

18-
- run: npm install
19-
- run: npm run build
20+
- name: Install dependencies
21+
run: npm install
2022

21-
- uses: peaceiris/actions-gh-pages@v3
23+
- name: Build
24+
run: npm run build
25+
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v3
2228
with:
2329
github_token: ${{ secrets.GITHUB_TOKEN }}
2430
publish_dir: ./build
25-
user_name: "eren-the-coder"
26-
user_email: "[email protected]"

0 commit comments

Comments
 (0)