This repository was archived by the owner on Apr 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
50 lines (45 loc) · 1.45 KB
/
build.yml
File metadata and controls
50 lines (45 loc) · 1.45 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
name: Build and Deploy doc sites
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: "0"
persist-credentials: false
- name: Checkout
uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/AtomicDEX-docs
path: AtomicDEX-docs
persist-credentials: false
- name: Add Algolia Secret
env:
ALGOLIAKEY: ${{secrets.ALGOLIA_SECRET}}
run: ./algolia-key.sh
- name: Build and Deploy to gh_pages
uses: KomodoPlatform/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.GH_TOKEN }}
ALGOLIAKEY: ${{secrets.ALGOLIA_SECRET}}
TARGET_REPO: ${{ github.repository }}
TARGET_BRANCH: gh-pages
CNAME: "developers.komodoplatform.com"
BUILD_SCRIPT: yarn && yarn docs:build
BUILD_DIR: docs/.vuepress/dist/
- name: Prepare AtomicDEX docs
env:
ALGOLIA_SECRET: ${{secrets.ALGOLIA_SECRET}}
run: ./prepare-atomicDEX-docs.sh
- name: Deploy updated files to AtomicDEX-docs repo
uses: KomodoPlatform/github-pages-deploy-action@v4.4.1
with:
token: ${{ secrets.GH_TOKEN }}
repository-name: ${{ github.repository_owner }}/AtomicDEX-docs
branch: master
folder: AtomicDEX-docs