Skip to content

Commit 654f40f

Browse files
authored
pipeline for deploy pages
1 parent b75701a commit 654f40f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy static content to Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Set this to your default branch
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Pages
22+
uses: actions/configure-pages@v5
23+
24+
- name: Upload artifact
25+
uses: actions/upload-pages-artifact@v3
26+
with:
27+
path: './tool/web-app' # Only upload the static web app directory
28+
29+
- name: Deploy to GitHub Pages
30+
id: deployment
31+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)