mirror of
https://github.com/tonytins/tomas.git
synced 2025-03-15 12:21:23 +00:00
31 lines
594 B
YAML
31 lines
594 B
YAML
|
name: Publish
|
||
|
|
||
|
on:
|
||
|
schedule:
|
||
|
- cron: "0 0 1 * *"
|
||
|
push:
|
||
|
branches: [main]
|
||
|
|
||
|
jobs:
|
||
|
deploy:
|
||
|
timeout-minutes: 15
|
||
|
continue-on-error: true
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Setup
|
||
|
uses: peaceiris/actions-mdbook@v1
|
||
|
with:
|
||
|
mdbook-version: "latest"
|
||
|
|
||
|
- name: Build
|
||
|
run: mdbook build ./docs
|
||
|
|
||
|
- name: Deploy
|
||
|
uses: peaceiris/actions-gh-pages@v3
|
||
|
with:
|
||
|
cname: tomas.tonybark.com
|
||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
publish_dir: ./docs/book
|