-
-
Notifications
You must be signed in to change notification settings - Fork 28
47 lines (36 loc) · 1.07 KB
/
docs_deploy_test_en.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
name: Документация | Развернуть на Neocities (EN, тестовый)
on:
workflow_dispatch:
concurrency:
group: deploy-to-neocities
cancel-in-progress: true
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: otymko/setup-onescript@v1.4
with:
version: 1.9.0
- name: Перевести контент страниц
run: oscript ./.github/workflows/os/docs_pagetranslate.os
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Установка зависимостей
run: |
cd ./docs/docusaurus
npm install
- name: Сборка
run: |
cp -r ./docs/en/md ./docs/docusaurus/docs
cd ./docs/docusaurus
yarn build
- name: Развертывание на neocities
uses: bcomnes/deploy-to-neocities@v2
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN_TEST }}
cleanup: true
dist_dir: ./docs/docusaurus/build