Skip to content

Commit 3acb2e1

Browse files
authored
Create pandocs page
1 parent bc45715 commit 3acb2e1

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy: # a free machine-readable name for this job
8+
runs-on: ubuntu-latest # specify the base operating system
9+
steps:
10+
- name: Checkout repo content # fetch the contents of the repository
11+
uses: actions/checkout@v2
12+
- name: Prepare build environment
13+
run: | # multiple Bash commands follow
14+
mkdir -p build
15+
touch build/.nojekyll
16+
- name: Run pandoc
17+
uses: docker://pandoc/core:2.12 # Always specify a version!
18+
with:
19+
args: >- # multi-line argument
20+
--standalone
21+
--output=build/index.html
22+
README.md
23+
- name: Deploy on github pages # Use a third-party plugin to upload the content
24+
uses: JamesIves/github-pages-deploy-action@4.1.0
25+
with:
26+
branch: gh-pages
27+
folder: build

0 commit comments

Comments
 (0)