Repository navigation
54 lines (45 loc) · 1.81 KB
/
Copy pathdocs-stable.yml
File metadata and controls
54 lines (45 loc) · 1.81 KB
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
name: Deploy Stable Docs
on:
push:
tags:
- 20.*.*
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Read-only default; the write scopes this workflow needs are granted on the job itself, so a
# future job added here does not silently inherit them.
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'koobiq' }}
permissions:
contents: read # for actions/checkout to read the repository
checks: write # for FirebaseExtended/action-hosting-deploy to create a check run
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node
uses: ./.github/workflows/actions/setup-node
- name: Build packages
uses: ./.github/workflows/actions/build-packages
- uses: ./.github/workflows/actions/build-docs
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@500ac625ca2dd40cbd15f7659af953801858032a # v0.11.0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_KOOBIQ }}'
firebaseToolsVersion: '15.3.1'
projectId: koobiq
target: stable
channelId: live
- name: Run Algolia DocSearch Crawler
uses: algolia/algoliasearch-crawler-github-actions@3ae4def15d82c60aa02b0e528b50167593cbaaf6 # v1.1.13
id: algolia_docsearch_crawler
with:
crawler-user-id: ${{ secrets.ALGOLIA_DOCSEARCH_CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.ALGOLIA_DOCSEARCH_CRAWLER_API_KEY }}
algolia-app-id: 7N2W9AKEM6
algolia-api-key: ${{ secrets.ALGOLIA_DOCSEARCH_API_KEY }}
site-url: 'https://koobiq.io'
crawler-name: 'koobiq'