34
.github/workflows/publish.yml
vendored
Normal file
34
.github/workflows/publish.yml
vendored
Normal 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
|
Reference in New Issue
Block a user