Hacknet-Extension-Tutorial


commit
7250099
parent
f155558
author
FBIK.
date
2025-12-11 12:59:05 +0000 UTC
ci: deploy site built via pgit
1 files changed,  +42, -0
A .github/workflows/deploy.yaml
+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