-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 921 Bytes
/
deploy.yml
File metadata and controls
41 lines (34 loc) · 921 Bytes
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
39
40
41
name: Build and Deploy Journals
on:
push:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install marked
run: npm install -g marked
- name: Run conversion script
run: |
chmod +x ./convertMarkdownToHtml.sh
./convertMarkdownToHtml.sh
- name: Prepare publish directory
run: |
mkdir public
cp index.html public/
cp -r assets public/
cp -r pages public/
cp CNAME public/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./public