From 83e1dd3d16344df377c0d17af2dac46a76e76c46 Mon Sep 17 00:00:00 2001 From: Frank Pagan Date: Fri, 15 Jan 2021 23:00:36 +0000 Subject: [PATCH] fix: (update config path) --- .github/workflows/automation.yml | 61 ++++++++++++++++++++++++++++++++ CoCreate.config.json | 49 +++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 .github/workflows/automation.yml create mode 100644 CoCreate.config.json diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml new file mode 100644 index 00000000..761ad161 --- /dev/null +++ b/.github/workflows/automation.yml @@ -0,0 +1,61 @@ +name: CI + +on: + push: + pull_request: + create: + +jobs: + changelog: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + # debuging action + # - name: Setup tmate session + # uses: mxschmitt/action-tmate@v3 + + + # - uses: actions/setup-node@v1 + # with: + # node-version: 12 + # registry-url: https://npm.pkg.github.com/ + # scope: '@cocreate-app' + # - run: npm publish --access=public + # env: + # NODE_AUTH_TOKEN: ${{secrets.GITHUB}} + + + # overwrite description and keyworkds + - name: Jaid/action-sync-node-meta + uses: jaid/action-sync-node-meta@v1.4.0 + with: + direction: overwrite-github # default is overwrite-file + githubToken: ${{ secrets.GITHUB }} + + # Auto Changog generator + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v2 + with: + # You can specify specifying version range for the extra plugins if you prefer. + extra_plugins: | + @semantic-release/changelog + @semantic-release/npm + @semantic-release/git + @semantic-release/github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: setup nodejs + uses: actions/setup-node@v2 + with: + node-version: 'v10.16.0' + + # - name: build production version + - run: yarn install --frozen-lockfile + + - name: update documentation + run: npm run html + diff --git a/CoCreate.config.json b/CoCreate.config.json new file mode 100644 index 00000000..db4f26ae --- /dev/null +++ b/CoCreate.config.json @@ -0,0 +1,49 @@ +{ + "socket": { + "config": { + "apiKey": "c2b08663-06e3-440c-ef6f-13978b42883a", + "securityKey": "f26baf68-e3a9-45fc-effe-502e47116265", + "organization_Id": "5de0387b12e200ea63204d6c" + }, + "host": "server.cocreate.app:8088" + }, + +// Source files to upload to CoCreate + "sources": [ + { + "path": "./src/index.html", + "collection": "module-views", + "document_id": "5f08bf3da588c11bf8ead4b3", + "name": "html", + }, + { + "collection":"website-pages", + "document_id":"", + "name":"html", + "domains":["ws.cocreate.app"], + "route":"/signup",} + }, + ] + + /* Comment parse and upload to CoCreate */ + + // Directory to parse for comments and upload to CoCreate + // "directory": "./test_files/", + // "extensions": [ + // "js", + // "css", + // "html" + // ], + // "ignores": [ + // "node_modules", + // "vendor", + // "bower_components", + // "archive" + // ], + + // "permissions": { + // "apiKey": "c2b08663-06e3-440c-ef6f-13978b42883a", + // "securityKey": "f26baf68-e3a9-45fc-effe-502e47116265", + // "organization_Id": "5de0387b12e200ea63204d6c" + // }, +}