-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1.04 KB
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: GitHub Pages
on:
repository_dispatch:
types: telegram_bot_api
push:
branches:
- master
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'master'
- name: Build generator
uses: actions-rs/cargo@v1
with:
command: build
args: --package gh-pages-generator --bin gh-pages-generator
- name: Generate schemas
uses: actions-rs/cargo@v1
with:
command: run
args: --package gh-pages-generator --bin gh-pages-generator -- production
- name: Generate (dev) schemas
uses: actions-rs/cargo@v1
with:
command: run
args: --package gh-pages-generator --bin gh-pages-generator -- dev
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
keep_files: true