2024-06-04 20:55:01 +02:00
|
|
|
name: Документация | Развернуть на Neocities (английская версия)
|
2024-05-28 20:52:02 +02:00
|
|
|
|
|
|
|
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
|
2024-06-05 08:32:39 +02:00
|
|
|
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Перевести контент страниц
|
|
|
|
run: oscript ./.github/workflows/os/docs_pagetranslate.os
|
2024-05-28 20:52:02 +02:00
|
|
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
|
|
|
|
- name: Установка зависимостей
|
|
|
|
run: |
|
|
|
|
cd ./docs/docusaurus
|
|
|
|
npm install
|
|
|
|
|
|
|
|
- name: Сборка
|
|
|
|
run: |
|
2024-06-04 20:55:01 +02:00
|
|
|
cp -r ./docs/en/md ./docs/docusaurus/docs
|
2024-05-28 20:52:02 +02:00
|
|
|
cd ./docs/docusaurus
|
|
|
|
yarn build
|
|
|
|
|
|
|
|
- name: Развертывание на neocities
|
2024-07-10 11:31:02 +02:00
|
|
|
uses: bcomnes/deploy-to-neocities@v2
|
2024-05-28 20:52:02 +02:00
|
|
|
with:
|
2024-07-10 11:31:02 +02:00
|
|
|
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
|
|
|
cleanup: true
|
|
|
|
dist_dir: ./docs/docusaurus/build
|