Добавляет в документацию пользовательское соглашение #14
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
name: documentation | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.0' | |
branches: [ master ] | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
name: Deploy to GitHub Pages | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./documentation | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependency | |
run: npm install | |
- name: Build documentation | |
run: | | |
export DOC_INCLUDE_CURRENT_VERSION=false | |
npm run build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./documentation/build | |
user_name: gh-pages-bot | |
user_email: gh-pages-bot@bot.com |