-
Notifications
You must be signed in to change notification settings - Fork 71
63 lines (53 loc) · 1.77 KB
/
build_docs_no_api.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Docs No API
on:
workflow_call:
permissions:
id-token: write # Required by Akeyless
contents: read
packages: read
jobs:
build_docs_no_api:
runs-on: ubuntu-latest
env:
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
container:
image: ghcr.io/telerik/blazor-build:latest
credentials:
username: ${{ github.actor }}
password: ${{ github.token }}
options: --user 1001 --cap-add=SYS_ADMIN --shm-size="4g"
defaults:
run:
# Use a login Bash shell to enable RVM
shell: bash -leo pipefail {0}
steps:
- name: Import Secrets
id: import-secrets
uses: LanceMcCarthy/akeyless-action@v3
with:
access-id: ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
static-secrets: '{ "/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN" }'
export-secrets-to-environment: false
- name: Clone Blazor-Docs Repository
uses: actions/checkout@v3
with:
path: temp/blazor-docs
- name: Check out Docs-Seed repo
uses: actions/checkout@v3
with:
repository: telerik/docs-seed
path: temp/docs-seed
ref: master
token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
fetch-depth: "0"
- name: Copy docs-seed elements
run: |
rsync -avc --exclude-from=./exclude.txt $(pwd)/ "../blazor-docs/"
working-directory: temp/docs-seed
- name: Build docs site with Jekyll
env:
RUBYOPT: -KU -E utf-8:utf-8
run: |
bundle --without development --path ~/gems
bundle exec jekyll build --config=_config.yml,_test_iis.yml
working-directory: temp/blazor-docs