-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (39 loc) · 1.37 KB
/
techdocs.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
name: Publish TechDocs Site
on:
workflow_dispatch:
push:
branches: [feat/catalog-info]
jobs:
publish-techdocs-site:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
GCS_BUCKET_NAME: ps-eu-w1-backstage-documentations-integration
ENTITY_NAMESPACE: 'default'
ENTITY_KIND: 'Component'
ENTITY_NAME: 'ps_mbo-documentation'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Auth GCP
uses: PrestaShopCorp/prestashop-github-action-gcp-auth@v1
with:
auth-mode: 'workload-federation' # ou 'json-file'
provider: ${{ secrets.WI_PROVIDER_INTEGRATION }}
service-account: ${{ secrets.WI_SA_INTEGRATION }}
setup-gcloud: false
registry-login: false
- uses: actions/setup-node@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install techdocs-cli
run: sudo npm install -g @techdocs/cli
- name: Install mkdocs and mkdocs plugins
run: python -m pip install mkdocs-techdocs-core==1.*
- name: Generate docs site
run: techdocs-cli generate --no-docker --verbose
- name: Publish docs site
run: techdocs-cli publish --publisher-type googleGcs --storage-name $GCS_BUCKET_NAME --entity $ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME