forked from treeverse/lakeFS
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1022 Bytes
/
docs-latest.yaml
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
name: documentation latest
on:
push:
paths:
- "docs/**"
branches:
- master
jobs:
docs-latest:
name: Documentation latest
runs-on: ubuntu-20.04
steps:
- name: Check-out
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1.79.0
with:
working-directory: docs
ruby-version: 2.6
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Build latest
id: build-latest
working-directory: docs
run: bundle exec jekyll build --config _config.yml -d _site/
- name: Publish to docs repository
uses: dmnemec/copy_file_to_another_repo_action@v1.1.1
env:
API_TOKEN_GITHUB: ${{ secrets.PERSONAL_TOKEN }}
with:
source_file: docs/_site/.
destination_repo: treeverse/docs-lakeFS
destination_folder: /
user_email: 'support@treeverse.io'
user_name: 'docs-action'