Skip to content

Commit

Permalink
try some simply path changing
Browse files Browse the repository at this point in the history
  • Loading branch information
goodroot committed Jul 3, 2024
1 parent 3cbd535 commit 2faa3fe
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout documentation PR branch
uses: actions/checkout@v3
with:
path: documentation

- name: Checkout questdb.io repository
uses: actions/checkout@v3
with:
repository: questdb/questdb.io
token: ${{ secrets.GH_PAT }}
path: questdb.io

- name: Checkout documentation PR branch
uses: actions/checkout@v3
with:
path: docs

- name: Debug
run: |
ls -la
- name: Replace documentation in questdb.io with updated documentation from PR
run: |
rm -rf questdb.io/docs/*
cp -R documentation/* questdb.io/docs/
cd questdb.io
cd docs
ls -la
- name: Deploy to Netlify
uses: jsmrcaga/[email protected]
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
build_directory: questdb.io/build
build_directory: build

- name: "Update PR"
if: ${{ env.NETLIFY_PREVIEW_URL }}
Expand Down

0 comments on commit 2faa3fe

Please sign in to comment.