Skip to content

Commit 338193a

Browse files
Merge pull request #2 from Infinite-Client/dev/The-Infinitys
deploy
2 parents b188411 + f05c578 commit 338193a

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Set a branch to deploy from
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
build:
16+
name: Build
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 24 # Using Node.js 20 as specified in package.json engines
26+
cache: npm
27+
28+
- name: Install dependencies
29+
run: npm install
30+
31+
- name: Run ESLint
32+
run: npm run lint
33+
34+
- name: Run Typecheck
35+
run: npm run typecheck
36+
37+
- name: Build Docusaurus website
38+
run: npm run build
39+
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: ./build
44+
45+
deploy:
46+
name: Deploy
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)