24 lines
469 B
YAML
24 lines
469 B
YAML
|
name: Build and Deploy Blog
|
||
|
on: [push]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v3
|
||
|
|
||
|
- name: Set up Pandoc
|
||
|
run: |
|
||
|
apt-get update
|
||
|
apt-get install -y pandoc
|
||
|
|
||
|
- name: Build site
|
||
|
run: |
|
||
|
chmod +x scripts/build.sh
|
||
|
./scripts/build.sh
|
||
|
|
||
|
- name: Deploy to Pages
|
||
|
uses: actions/pages@v1
|
||
|
with:
|
||
|
target: 'public'
|
||
|
keep_files: false
|