From d364825b8d797426201f7a1b0f2264e7067510b1 Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Mon, 6 Dec 2021 02:20:59 +0400
Subject: [PATCH] Added CI.

Signed-off-by: Pavel Kirilin <win10@list.ru>
---
 .github/workflows/publish.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .github/workflows/publish.yml

diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 0000000..5bfedfb
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -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
-- 
GitLab