generated from slatedocs/slate
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (35 loc) · 1.11 KB
/
deploy.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
41
42
name: Deploy
on:
push:
branches: ["main"]
permissions:
contents: write
pages: write
repository-projects: write
jobs:
deploy:
runs-on: ubuntu-latest
env:
ruby-version: 2.7
steps:
- uses: actions/checkout@v4
- name: Markdown autodocs
uses: dineshsonachalam/[email protected]
with:
# Optional output file paths, defaults to '[./README.md]'.
output_file_paths: '[./source/includes/*.md]'
# Categories to automatically sync or transform its contents in the markdown files.
# Defaults to '[code-block,json-to-html-table,workflow-artifact-table]'
categories: '[code-block]'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec middleman build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
keep_files: true