From e1f11855141310d4c563dc434b999723390b1e4d Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Wed, 14 Jul 2021 13:25:22 +0530 Subject: [PATCH] chore(github-actions): Doc release action Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- .github/workflows/publish-docs.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/publish-docs.yml diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml new file mode 100644 index 0000000000..5956a120a6 --- /dev/null +++ b/.github/workflows/publish-docs.yml @@ -0,0 +1,33 @@ +name: Publish Docs + +on: + push: + branches: [ main ] + +jobs: + copy-file: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Build docs + run: | + cd packages/noco-doc + npm install + npm run generate + + + - name: Pushes generated output + uses: dmnemec/copy_file_to_another_repo_action@main + env: + API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} + with: + source_file: 'packages/noco-doc/dist/' + destination_repo: 'nocodb/noco-docs' + destination_folder: 'docs' + user_email: 'pranavxc@gmail.com' + user_name: 'pranavxc' + commit_message: 'Autorelease from github.com/nocodb/nocodb' \ No newline at end of file