Added CI.

Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
2021-12-06 02:20:59 +04:00
parent 791f73f2c6
commit d364825b8d

34
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Publish docs
on:
push:
branches:
- master
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: install dependencies.
uses: borales/actions-yarn@v2.3.0
with:
cmd: install # will run `yarn install` command
- name: Build docs
uses: borales/actions-yarn@v2.3.0
with:
cmd: generate # will run `yarn generate` command
- name: Push to docs repo
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'dist'
destination-github-username: 's3rius'
destination-repository-name: 's3rius.github.io'
user-email: win10@list.ru
target-branch: master