We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff765ac commit 7feee34Copy full SHA for 7feee34
1 file changed
.github/workflows/build_gh.yml
@@ -0,0 +1,28 @@
1
+name: Export Obsidian Vault to GitHub Pages
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+jobs:
7
+ export-and-deploy:
8
+ runs-on: ubuntu-latest
9
10
+ steps:
11
+ - name: Checkout repository
12
+ uses: actions/checkout@v3
13
14
+ - name: Create output folder
15
+ run: mkdir -p output
16
17
+ - name: Run export with Docker
18
+ run: |
19
+ docker run --rm \
20
+ -v ./:/vault \
21
+ -v ./output:/output
22
+ klaxalk/obsidian-webpage-export:1.9.0
23
24
+ - name: Deploy to GitHub Pages
25
+ uses: peaceiris/actions-gh-pages@v3
26
+ with:
27
+ github_token: ${{ secrets.GITHUB_TOKEN }}
28
+ publish_dir: ./output
0 commit comments