- commit
- 87b1907
- parent
- b5ae79e
- author
- FBIK.
- date
- 2025-12-11 13:03:31 +0000 UTC
Merge pull request #27 from FBIKdot/fbik-patch feat: 使用pgit构建仓库站
2 files changed,
+43,
-0
+42,
-0
1@@ -0,0 +1,42 @@
2+name: deploy
3+
4+on:
5+ workflow_dispatch:
6+ push:
7+ branches: [main]
8+
9+permissions:
10+ contents: read
11+ pages: write
12+ id-token: write
13+
14+concurrency:
15+ group: "pages"
16+ cancel-in-progress: false
17+
18+jobs:
19+ deploy:
20+ environment:
21+ name: github-pages
22+ url: ${{ steps.deployment.outputs.page_url }}
23+ runs-on: ubuntu-latest
24+ steps:
25+ - name: Checkout
26+ uses: actions/checkout@v4
27+
28+ - name: Setup pgit
29+ run : |
30+ curl -LO https://github.com/FBIKdot/pgit/releases/download/1.2.0-rc1/pgit
31+
32+ - name: Generate documentation
33+ run: |
34+ ./pgit --revs main --label Hacknet-Extension-Tutorial --out ./public
35+
36+ - name: Upload artifact
37+ uses: actions/upload-pages-artifact@v3.0.1
38+ with:
39+ path: "./public"
40+
41+ - name: Deploy to GitHub Pages
42+ id: deployment
43+ uses: actions/deploy-pages@v4
+1,
-0
1@@ -0,0 +1 @@
2+public/