-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.03 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy github pages
on:
push:
branches:
- main
jobs:
ci:
uses: ./.github/workflows/ci.yml
build-and-deploy:
runs-on: ubuntu-latest
needs: ci
permissions:
contents: write
pages: write
id-token: write
steps:
- uses: purcell/setup-emacs@master
with:
version: 29.4
- uses: actions/checkout@v4
# for Build Html
- name: wget htmlize
run: wget https://raw.githubusercontent.com/hniksic/emacs-htmlize/master/htmlize.el
- name: build
run: emacs --batch --load htmlize.el --load script.el --funcall export-org-files
- name: move init.html to index.html
run: mv public/init.html public/index.html
# for Deploy Github Pages
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4