mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 01:37:09 +00:00
feat: add action for noco-docs-prev
Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
This commit is contained in:
40
.github/workflows/publish-prev-docs.yml
vendored
Normal file
40
.github/workflows/publish-prev-docs.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: "Publish : Docs with < v0.90"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- "packages/noco-docs-prev/**"
|
||||
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 prev docs
|
||||
run: |
|
||||
cd packages/noco-docs-prev
|
||||
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-prev/dist/'
|
||||
clear_folder: 'docs/dist'
|
||||
destination_repo: 'nocodb/noco-docs-prev'
|
||||
destination_folder: 'docs'
|
||||
user_email: 'wingkwong,code@gmail.com'
|
||||
user_name: 'wingkwong'
|
||||
commit_message: 'Autorelease from github.com/nocodb/nocodb/packages/noco-docs-prev'
|
||||
Reference in New Issue
Block a user