Skip to content

Commit ad6ddfd

Browse files
committed
add github workflow
1 parent bc638e5 commit ad6ddfd

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# .github/workflows/deploy-cheatsheet.yml
2+
3+
name: Deploy Cheatsheet to GitHub Pages
4+
5+
on:
6+
push:
7+
branches: [ main ] # Or your default branch
8+
paths:
9+
- 'doc/cheatsheet/**'
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: 'pages'
18+
cancel-in-progress: true
19+
20+
jobs:
21+
deploy:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout Repository
26+
uses: actions/checkout@v3
27+
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v3
30+
31+
- name: Upload Cheatsheet files
32+
uses: actions/upload-pages-artifact@v2
33+
with:
34+
path: doc/cheatsheet
35+
36+
- name: Deploy to GitHub Pages
37+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)