Skip to content

Commit

Permalink
Update deploy-content-staging.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyabhandari0220 authored Oct 3, 2024
1 parent 88289d3 commit 4075351
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-content-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 4075351

Please sign in to comment.