mirror of https://github.com/Wilfred/difftastic/
32 lines
665 B
YAML
32 lines
665 B
YAML
name: Deploy Manual
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-20.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: '0.4.12'
|
|
|
|
- name: Build manual
|
|
run: mdbook build
|
|
working-directory: manual
|
|
|
|
- name: Deploy to Surge
|
|
uses: dswistowski/surge-sh-action@v1
|
|
with:
|
|
domain: 'difftastic.wilfred.me.uk'
|
|
project: 'manual/book'
|
|
login: wilfred
|
|
token: ${{ secrets.SURGE_TOKEN }}
|