Skip to content

Commit 7feee34

Browse files
committed
ci: build & deploy to gh
1 parent ff765ac commit 7feee34

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build_gh.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)