Skip to content

Commit 87b1907

Browse files
authored
Merge pull request #27 from FBIKdot/fbik-patch
feat: 使用pgit构建仓库站
2 parents b5ae79e + 7250099 commit 87b1907

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup pgit
28+
run : |
29+
curl -LO https://github.com/FBIKdot/pgit/releases/download/1.2.0-rc1/pgit
30+
31+
- name: Generate documentation
32+
run: |
33+
./pgit --revs main --label Hacknet-Extension-Tutorial --out ./public
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3.0.1
37+
with:
38+
path: "./public"
39+
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public/

0 commit comments

Comments
 (0)