Skip to content

Commit 046882b

Browse files
committed
update github workflow
1 parent e52b2d0 commit 046882b

File tree

2 files changed

+42
-43
lines changed

2 files changed

+42
-43
lines changed

.github/workflows/github-page.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy CI
2+
permissions:
3+
id-token: write
4+
pages: write
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Use Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '18.x'
22+
- name: Build static files
23+
id: build
24+
run: |
25+
npm install
26+
npm run build
27+
- name: Upload static files as artifact
28+
id: deployment
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: dist/
32+
33+
deploy:
34+
environment:
35+
name: github-pages
36+
url: ${{ steps.deployment.outputs.page_url }}
37+
runs-on: ubuntu-latest
38+
needs: build
39+
steps:
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

.github/workflows/static.yml

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

0 commit comments

Comments
 (0)