forked from lingui/js-lingui
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 964 Bytes
/
release-docs.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
name: release-docs
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
working-directory: website
run: yarn install --frozen-lockfile --pure-lockfile
- name: Build
working-directory: website
run: yarn build
- name: Deploy documentation
working-directory: website
run: |
npx vercel --public --yes --prod --token ${{ secrets.NOW_TOKEN }} --name lingui-docs build
- name: Update Algolia index
uses: darrenjennings/[email protected]
with:
algolia_application_id: ${{ vars.ALGOLIA_APP_ID }}
algolia_api_key: ${{ secrets.ALGOLIA_WRITE_API_KEY }}
file: 'website/tools/algolia/config.json'