Skip to content

Commit adb15a7

Browse files
committed
ci: deploy Probably to GitHub Pages
1 parent 26f8548 commit adb15a7

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
actions: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
17+
18+
jobs:
19+
deploy:
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v6
28+
29+
- name: Prepare static artifact
30+
run: |
31+
mkdir -p _site
32+
cp index.html _site/
33+
touch _site/.nojekyll
34+
35+
- name: Configure GitHub Pages
36+
uses: actions/configure-pages@v5
37+
38+
- name: Upload GitHub Pages artifact
39+
uses: actions/upload-pages-artifact@v4
40+
with:
41+
path: _site
42+
43+
- name: Deploy to GitHub Pages
44+
id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)