Skip to content

Commit 01365ea

Browse files
deployment action
1 parent 9f86b86 commit 01365ea

File tree

3 files changed

+39
-36
lines changed

3 files changed

+39
-36
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ tab_width = 4
1414
[*.json]
1515
indent_style = space
1616
indent_size = 2
17+
18+
[*.yml]
19+
indent_style = space
20+
indent_size = 2
21+
22+
[*.yaml]
23+
indent_style = space
24+
indent_size = 2

.github/workflows/deploy

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 20
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Build project
25+
run: npm run build
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
31+
publish_dir: ./dist

0 commit comments

Comments
 (0)