Pārlūkot izejas kodu

try to build and publish with github pages

Thomas B 2 mēnešus atpakaļ
vecāks
revīzija
e43252e796
2 mainītis faili ar 50 papildinājumiem un 2 dzēšanām
  1. 46
    0
      .github/workflows/docs.yml
  2. 4
    2
      README.md

+ 46
- 0
.github/workflows/docs.yml Parādīt failu

@@ -0,0 +1,46 @@
1
+name: Page
2
+
3
+# only build single instance of docs for latest main branch
4
+on:
5
+  push:
6
+    branches:
7
+      - master
8
+
9
+jobs:
10
+  deploy:
11
+    runs-on: ubuntu-latest
12
+
13
+    permissions:
14
+      contents: write
15
+      pages: write
16
+      id-token: write
17
+
18
+    steps:
19
+      - name: Checkout repo
20
+        uses: actions/checkout@v4
21
+        with:
22
+          fetch-depth: 0
23
+
24
+      - name: Install dependencies
25
+        run: |
26
+          sudo apt update
27
+          sudo apt install -y --install-recommends python3-markdown
28
+
29
+      - name: Build site
30
+        run: |
31
+          rm -rf output
32
+          mkdir output
33
+          ./poole.py --build
34
+          cp -r static/* output/
35
+
36
+      - name: Setup Pages
37
+        uses: actions/configure-pages@v2
38
+
39
+      - name: Upload artifact
40
+        uses: actions/upload-pages-artifact@v1
41
+        with:
42
+          path: 'output'
43
+
44
+      - name: Deploy to GitHub Pages
45
+        id: deployment
46
+        uses: actions/deploy-pages@v1

+ 4
- 2
README.md Parādīt failu

@@ -1,12 +1,14 @@
1 1
 # Website
2 2
 
3 3
 This is the repo for [my website xythobuz.de](https://www.xythobuz.de).
4
-
5 4
 It uses an (old, modified) version of [poole](https://hg.sr.ht/~obensonne/poole) ported to run on both Python 2 and 3.
6 5
 
6
+To run a local test instance call the `localtest.sh` script.
7
+This is also a good starting point for integration into a CI workflow.
8
+
7 9
 Includes [SHJS](https://shjs.sourceforge.net/) and [llightGallery](https://github.com/sachinchoolur/lightGallery).
8 10
 
9 11
 ## To Do
10 12
 
11 13
 All large static files (photos, videos) are just put into this git repo.
12
-That was never a good idea and should be changed.
14
+That was never a good idea and should probably be changed...

Notiek ielāde…
Atcelt
Saglabāt