mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1003 B
39 lines
1003 B
name: "Publish : Blog" |
|
|
|
on: |
|
push: |
|
branches: [ master ] |
|
paths: |
|
- "packages/noco-blog/**" |
|
|
|
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: 16 |
|
- 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'
|
|
|