-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip] migrating away from doublecloud
- Loading branch information
1 parent
b6f8815
commit 0e15221
Showing
2 changed files
with
69 additions
and
51 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Website | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
paths: | ||
- "docs/**" | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "main" | ||
paths: | ||
- "docs/**" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Build docs | ||
uses: diplodoc-platform/docs-build-action@v3 | ||
with: | ||
src-root: "./docs" | ||
build-root: "./docs-html" | ||
# Build the landing page | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" # Укажите подходящую версию Node.js | ||
|
||
- name: Install dependencies for landing page | ||
run: | | ||
cd docs/website | ||
npm install -g js-yaml | ||
npm install --legacy-peer-deps | ||
- name: Build landing page | ||
run: | | ||
cd docs/website | ||
PUBLIC_URL=/transfer npm run build | ||
cd ../../ | ||
ls ./_docs-lint | ||
cp -r ./_docs-lint ./docs/website/build/docs | ||
# Upload the landing page build artifact | ||
- name: Upload landing page artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: "./docs/website/build" | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |