Skip to content

Commit 6e6b353

Browse files
committed
chore: build pages
1 parent d55fac3 commit 6e6b353

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout source
14+
uses: actions/checkout@v4
15+
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v2
18+
with:
19+
version: 8
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: 'pnpm'
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Build project
31+
run: pnpm run build
32+
33+
- name: Upload build output
34+
uses: actions/upload-pages-artifact@v2
35+
with:
36+
path: dist
37+
38+
- name: Deploy to GitHub Pages
39+
uses: crazy-max/ghaction-github-pages@v4
40+
with:
41+
target_branch: gh-pages
42+
build_dir: dist
43+
fqdn: md-pages.doocs.org
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dist
88

99
# Node dependencies
1010
node_modules
11+
package-lock.json
1112

1213
# Logs
1314
logs

0 commit comments

Comments
 (0)