mirror of https://github.com/nocodb/nocodb
Naveen MR
3 years ago
1 changed files with 40 additions and 0 deletions
@ -0,0 +1,40 @@
|
||||
name: "Publish : Docs" |
||||
|
||||
on: |
||||
push: |
||||
branches: [ develop ] |
||||
paths: |
||||
- "packages/noco-docs/**" |
||||
release: |
||||
types: [ published ] |
||||
|
||||
jobs: |
||||
copy-file: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
with: |
||||
fetch-depth: 0 |
||||
- uses: actions/setup-node@v2 |
||||
with: |
||||
node-version: 14 |
||||
- name: Build docs |
||||
run: | |
||||
cd packages/noco-docs |
||||
npm install |
||||
npm run generate |
||||
|
||||
|
||||
- name: Pushes generated output |
||||
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658 |
||||
env: |
||||
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} |
||||
with: |
||||
source_file: 'packages/noco-docs/dist/' |
||||
clear_folder: 'docs/dist' |
||||
destination_repo: 'nocodb/noco-docs-dev' |
||||
destination_folder: 'docs' |
||||
user_email: 'oof1lab@gmail.com' |
||||
user_name: 'o1lab' |
||||
commit_message: 'Autorelease docs in develop branch' |
Loading…
Reference in new issue