Files
nocodb/.github/workflows/publish-blog.yml
renovate[bot] b3e3d8d4df chore(renovate): Update patch (patch) (#7647)
* chore(renovate): Update patch

* chore(deps): update node version to 18.19.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: աɨռɢӄաօռɢ <wingkwong.code@gmail.com>
2024-02-28 20:47:33 +08:00

40 lines
1008 B
YAML

name: "Publish : Blog"
on:
push:
branches: [ master ]
paths:
- "packages/noco-blog/**"
jobs:
copy-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18.19.1
- name: Build blogs
run: |
cd packages/noco-blog
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:
clear_folder: 'docs/dist'
source_file: 'packages/noco-blog/dist/'
destination_repo: 'nocodb/noco-blog'
destination_folder: 'docs'
user_email: 'oof1lab@gmail.com'
user_name: 'o1lab'
commit_message: 'Autorelease from github.com/nocodb/nocodb/packages/noco-blog'