mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-16 11:38:11 +02:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Документация | Развернуть на Neocities (английская версия)
|
|
|
|
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: jonchang/deploy-neocities@e557d8b4aa935cd3e1a437c038bb043c9b4064f6
|
|
with:
|
|
key: ${{ secrets.NEOCITIES_EN_API_TOKEN }}
|
|
dir: ./docs/docusaurus/build
|
|
clean: false |