Skip to content

Commit b730ca1

Browse files
author
Eric Ma
committed
add GitHub Pages workflow
1 parent 5b9d666 commit b730ca1

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/static.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy static page
2+
on:
3+
push:
4+
branches: [master]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: pages
12+
cancel-in-progress: false
13+
jobs:
14+
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/configure-pages@v5
22+
- uses: actions/upload-pages-artifact@v3
23+
with:
24+
path: .
25+
- id: deployment
26+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)