Skip to content

Commit

Permalink
Update to automatically build ReSpec template
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccrae committed Nov 5, 2024
1 parent 205319f commit 59a4820
Show file tree
Hide file tree
Showing 5 changed files with 1,906 additions and 1,662 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Deploy GitHub Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
# Step 1: Check out the repository
- name: Check out the repository
uses: actions/checkout@v3

# Step 2: Set up Pandoc
- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc
# Step 3: Convert index.md to index.html
- name: Convert Markdown to HTML with Pandoc
run: pandoc --template respec.template -f markdown-auto_identifiers --wrap=none index.md -o index.html

# Step 4: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index.html
Loading

0 comments on commit 59a4820

Please sign in to comment.