File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Lite Demo to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - feature/dotnet-core-migration
8+ paths :
9+ - " docs/lite-demo/**"
10+ - " .github/workflows/deploy-lite-demo-pages.yml"
11+ workflow_dispatch :
12+
13+ permissions :
14+ contents : read
15+ pages : write
16+ id-token : write
17+
18+ concurrency :
19+ group : pages
20+ cancel-in-progress : true
21+
22+ jobs :
23+ deploy :
24+ runs-on : ubuntu-latest
25+ environment :
26+ name : github-pages
27+ url : ${{ steps.deployment.outputs.page_url }}
28+
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v4
32+
33+ - name : Prepare static site
34+ run : |
35+ mkdir -p site/lite-demo
36+ cp -R docs/lite-demo/* site/lite-demo/
37+ cat > site/index.html <<'EOF'
38+ <!doctype html>
39+ <html lang="en">
40+ <head>
41+ <meta charset="utf-8" />
42+ <meta http-equiv="refresh" content="0; url=./lite-demo/" />
43+ <title>Mozaika Lite Demo</title>
44+ </head>
45+ <body>
46+ <a href="./lite-demo/">Open Mozaika Lite Demo</a>
47+ </body>
48+ </html>
49+ EOF
50+
51+ - name : Setup Pages
52+ uses : actions/configure-pages@v5
53+
54+ - name : Upload artifact
55+ uses : actions/upload-pages-artifact@v3
56+ with :
57+ path : site
58+
59+ - name : Deploy
60+ id : deployment
61+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments