diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000000000000000000000000000000000000..5bfedfb95f5bf5584a2c60394ae16f2623812b7c --- /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