Skip to content

Commit 23f05f6

Browse files
committed
Add .github/workflows/deploy.yml.
1 parent 3cdd01d commit 23f05f6

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Deploy the website.
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: ⬇️ Check out the repository
23+
uses: actions/checkout@v4
24+
25+
- name: 📁 Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 23
29+
30+
- name: 📁 Setup Pages
31+
uses: actions/configure-pages@v5
32+
33+
- name: 📁 Install dependencies
34+
run: |
35+
npm ci
36+
37+
- name: Build with Vue
38+
run: |
39+
npm run build
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: dist
45+
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
51+
runs-on: ubuntu-latest
52+
53+
needs: build
54+
55+
steps:
56+
- name: 📦 Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)