|
|
@ -1,4 +1,4 @@
|
|
|
|
name: Rust
|
|
|
|
name: Snekdown
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
push:
|
|
|
@ -17,13 +17,17 @@ jobs:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Snekdown
|
|
|
|
- name: Install Snekdown
|
|
|
|
run: cargo install snekdown --all-features
|
|
|
|
run: wget https://github.com/Trivernis/snekdown/releases/latest/download/snekdown-linux-x86_64 -O snekdown
|
|
|
|
|
|
|
|
- name: Make executable
|
|
|
|
|
|
|
|
run: chmod +x snekdown
|
|
|
|
- name: Create dist
|
|
|
|
- name: Create dist
|
|
|
|
run: mkdir dist
|
|
|
|
run: mkdir dist
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
run: snekdown render main.md dist/index.html
|
|
|
|
run: ./snekdown render main.md dist/documentation.html
|
|
|
|
|
|
|
|
- name: Build PDF
|
|
|
|
|
|
|
|
run: ./snekdown render main.md dist/documentation.pdf
|
|
|
|
- name: Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
name: documentation.html
|
|
|
|
name: documentation
|
|
|
|
path: dist/index.html
|
|
|
|
path: dist/*
|