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 diff --git a/.github/workflows/netlify-preview.yml b/.github/workflows/netlify-preview.yml index 2e9c66da..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 @@ -19,8 +18,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 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.