You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
782 B
YAML

name: Snekdown
4 years ago
on:
push:
branches: [ main, develop, actions ]
pull_request:
branches: [ main, develop, actions ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Snekdown
run: wget https://github.com/Trivernis/snekdown/releases/latest/download/snekdown-linux-x86_64 -O snekdown
- name: Make executable
run: chmod +x snekdown
4 years ago
- name: Create dist
run: mkdir dist
- name: Build
run: ./snekdown render main.md dist/documentation.html
- name: Build PDF
run: ./snekdown render main.md dist/documentation.pdf
4 years ago
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: documentation
path: dist/*