From a7df0204e4a88bb9380d027f654474bcf4be66a3 Mon Sep 17 00:00:00 2001 From: Kellen <9484709+goodroot@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:02:23 -0700 Subject: [PATCH 1/4] test3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5cb2cd79..71021d4f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # documentation -The questDB docs test2. +The questDB docs test3. From 2fe1c2fe635ae6b94c5ebf0a4e71667c8fae8d5c Mon Sep 17 00:00:00 2001 From: Kellen <9484709+goodroot@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:06:04 -0700 Subject: [PATCH 2/4] branch --- .github/workflows/netlify-preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/netlify-preview.yml b/.github/workflows/netlify-preview.yml index 2e9c66da..e63f56c1 100644 --- a/.github/workflows/netlify-preview.yml +++ b/.github/workflows/netlify-preview.yml @@ -19,8 +19,9 @@ jobs: uses: actions/checkout@v4 with: repository: questdb/questdb.io - token: ${{ secrets.DEPLOY_TOKEN }} # `GH_PAT` is a secret that contains your PAT + token: ${{ secrets.DEPLOY_TOKEN }} fetch-depth: 0 + ref: "master" persist-credentials: true - name: Checkout local docs From 02d22cd7c329d20cd295d8703dab98c132cd2c78 Mon Sep 17 00:00:00 2001 From: Kellen <9484709+goodroot@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:08:35 -0700 Subject: [PATCH 3/4] no label --- .github/workflows/netlify-preview.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/netlify-preview.yml b/.github/workflows/netlify-preview.yml index e63f56c1..c678cb1d 100644 --- a/.github/workflows/netlify-preview.yml +++ b/.github/workflows/netlify-preview.yml @@ -2,7 +2,7 @@ name: "Preview deploy" on: pull_request: - types: ["opened", "edited", "synchronize", "labeled"] + types: ["opened", "edited", "synchronize"] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -10,7 +10,6 @@ concurrency: jobs: deploy: - if: ${{ github.event.label.name == 'run-ci' }} name: "build on Netlify" runs-on: ubuntu-latest From 7ae3821bfca78540419c93c3eed4f45db2de3da3 Mon Sep 17 00:00:00 2001 From: Kellen <9484709+goodroot@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:41:42 -0700 Subject: [PATCH 4/4] polish --- .github/workflows/netlify-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/netlify-deploy.yml b/.github/workflows/netlify-deploy.yml index ea7a7eb6..9624ecff 100644 --- a/.github/workflows/netlify-deploy.yml +++ b/.github/workflows/netlify-deploy.yml @@ -33,10 +33,10 @@ jobs: cp -rvT src/docs/* dst/docs/. cp -v src/sidebars.js dst/sidebars.js - - name: Check For New Files + - name: Check for new or changed files id: newFiles shell: bash - working-directory: dest + working-directory: dst run: | git add -A if [ $(git status --porcelain | wc -l) -gt 0 ]; then @@ -45,7 +45,7 @@ jobs: echo "::set-output name=hasNewFiles::false" fi - - name: Push New Files + - name: Synchronize docs with main website if: ${{ steps.newFiles.outputs.hasNewFiles == 'true' }} shell: bash working-directory: dst