diff --git a/.github/workflows/deploy-content-staging.yml b/.github/workflows/deploy-content-staging.yml index 410cc678a1c..921b83eb331 100644 --- a/.github/workflows/deploy-content-staging.yml +++ b/.github/workflows/deploy-content-staging.yml @@ -41,9 +41,6 @@ jobs: - name: Set environment variable for spreadsheet key run: echo "URL_SPREADSHEET_KEY=${{ secrets.URL_SPREADSHEET_KEY }}" >> $GITHUB_ENV - - name: Remove existing content - run: rm -rf content-staging-build/src/content-sources/oatutor/* - - name: Create Content Directory run: mkdir -p content-staging-build/src/content-sources/oatutor/Content @@ -52,6 +49,10 @@ jobs: cd content-staging-build/src/content-sources/oatutor/Content python3 /home/runner/work/OATutor-Tooling/content_script/final.py online full + - name: Merge new content into existing content + run: | + rsync -av content-staging-build/src/content-sources/oatutor/Content/ content-staging-build/src/content-sources/oatutor/ + - name: Move and prepare files run: | cd content-staging-build/src/content-sources/oatutor