mirror of
https://github.com/nocodb/nocodb.git
synced 2026-02-01 22:08:33 +00:00
* chore: update runner os to ubuntu-22.04 Signed-off-by: Pranav C <pranavxc@gmail.com> * docs: formatting Signed-off-by: Pranav C <pranavxc@gmail.com> --------- Signed-off-by: Pranav C <pranavxc@gmail.com>
92 lines
3.4 KiB
YAML
92 lines
3.4 KiB
YAML
name: "Publish : Api Docs"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- "packages/nocodb/src/schema/swagger.json"
|
|
release:
|
|
types: [ published ]
|
|
|
|
jobs:
|
|
copy-file:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Pushes swagger file to data-apis-v1
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
|
|
with:
|
|
source_file: 'packages/nocodb/src/schema/swagger.json'
|
|
destination_repo: 'nocodb/noco-apis-doc'
|
|
destination_folder: 'data-apis-v1'
|
|
user_email: 'oof1lab@gmail.com'
|
|
user_name: 'o1lab'
|
|
commit_message: 'Autorelease from github.com/nocodb/nocodb'
|
|
|
|
- name: Pushes swagger file to data-apis-v2
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
|
|
with:
|
|
source_file: 'packages/nocodb/src/schema/swagger-v2.json'
|
|
destination_repo: 'nocodb/noco-apis-doc'
|
|
destination_folder: 'data-apis-v2'
|
|
user_email: 'oof1lab@gmail.com'
|
|
user_name: 'o1lab'
|
|
commit_message: 'Autorelease from github.com/nocodb/nocodb'
|
|
|
|
- name: Pushes swagger file to data-apis-v3
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
|
|
with:
|
|
source_file: 'packages/nocodb/src/schema/swagger-v3.json'
|
|
destination_repo: 'nocodb/noco-apis-doc'
|
|
destination_folder: 'data-apis-v3'
|
|
user_email: 'oof1lab@gmail.com'
|
|
user_name: 'o1lab'
|
|
commit_message: 'Autorelease from github.com/nocodb/nocodb'
|
|
|
|
- name: Pushes swagger file to meta-apis-v1
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
|
|
with:
|
|
source_file: 'packages/nocodb/src/schema/swagger.json'
|
|
destination_repo: 'nocodb/noco-apis-doc'
|
|
destination_folder: 'meta-apis-v1'
|
|
user_email: 'oof1lab@gmail.com'
|
|
user_name: 'o1lab'
|
|
commit_message: 'Autorelease from github.com/nocodb/nocodb'
|
|
|
|
- name: Pushes swagger file to meta-apis-v2
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
|
|
with:
|
|
source_file: 'packages/nocodb/src/schema/swagger-v2.json'
|
|
destination_repo: 'nocodb/noco-apis-doc'
|
|
destination_folder: 'meta-apis-v2'
|
|
user_email: 'oof1lab@gmail.com'
|
|
user_name: 'o1lab'
|
|
commit_message: 'Autorelease from github.com/nocodb/nocodb'
|
|
|
|
- name: Pushes swagger file to meta-apis-v3
|
|
uses: dmnemec/copy_file_to_another_repo_action@1b29cbd9a323185f20b175dc6d5f8f31be5c0658
|
|
env:
|
|
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
|
|
with:
|
|
source_file: 'packages/nocodb/src/schema/swagger-v3.json'
|
|
destination_repo: 'nocodb/noco-apis-doc'
|
|
destination_folder: 'meta-apis-v3'
|
|
user_email: 'oof1lab@gmail.com'
|
|
user_name: 'o1lab'
|
|
commit_message: 'Autorelease from github.com/nocodb/nocodb'
|