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 5, 2024
1 parent 866d709 commit 028a564
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy-content-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 028a564

Please sign in to comment.