From 028a564711631311e060f50417e70f1763dfcbc3 Mon Sep 17 00:00:00 2001 From: shreyabhandari0220 <115904795+shreyabhandari0220@users.noreply.github.com> Date: Fri, 4 Oct 2024 21:26:56 -0400 Subject: [PATCH] Update deploy-content-staging.yml --- .github/workflows/deploy-content-staging.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-content-staging.yml b/.github/workflows/deploy-content-staging.yml index 00d5eb47633..684e1fdfbb2 100644 --- a/.github/workflows/deploy-content-staging.yml +++ b/.github/workflows/deploy-content-staging.yml @@ -42,10 +42,8 @@ jobs: - name: Set environment variable for spreadsheet key run: echo "URL_SPREADSHEET_KEY=${{ secrets.URL_SPREADSHEET_KEY }}" >> $GITHUB_ENV - - name: Pull the latest content - run: | - cd content-staging-build - git pull origin content-staging + - 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 @@ -55,7 +53,7 @@ jobs: cd content-staging-build/src/content-sources/oatutor/Content python3 /home/runner/work/OATutor-Tooling/content_script/final.py online full - - name: Move and merge new files + - name: Move and prepare files run: | cd content-staging-build/src/content-sources/oatutor mv "OpenStax Content" "content-pool"