-
Notifications
You must be signed in to change notification settings - Fork 360
52 lines (44 loc) · 1.38 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
name: documentation latest
on:
push:
paths:
- "docs/**"
- ".github/workflows/docs-*.yaml"
branches:
- master
workflow_dispatch:
jobs:
docs-latest:
name: Documentation latest
runs-on: ubuntu-22.04
steps:
- name: Check-out
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: docs
ruby-version: '3.2'
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: Update robots.txt
working-directory: docs/_site
run: |
sed -i 's/^Sitemap: /Sitemap: https:\/\/docs.lakefs.io/' robots.txt
- name: Add base-url to sitemap.xml
working-directory: docs/_site
run: |
sed -i 's/<loc>/<loc>https:\/\/docs.lakefs.io/' sitemap.xml
- 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'