Skip to content

Commit

Permalink
Adjusted staging deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyabhandari0220 committed Apr 1, 2024
1 parent 7170ff9 commit fc7b777
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ jobs:
REACT_APP_MIDDLEWARE_URL: ${{ secrets.STAGING_MIDDLEWARE_URL }}
REACT_APP_COMMIT_HASH: ${{ github.sha }}

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: 'CAHLR/OATutor-Staging'
ssh-key: ${{ secrets.STAGING_SSH_PRIVATE_KEY }}
token: ${{ secrets.GH_PAT }} # Use PAT for checking out the staging repo
ref: 'main'
path: 'staging-build'

# Modified to use HTTPS and PAT for pushing
- name: Push
run: |
cd staging-build
Expand All @@ -77,4 +78,4 @@ jobs:
git config --local user.name "${{ env.git_name }}"
git diff --cached --quiet --exit-code && echo "no changes to platform, exiting early" && exit 0
git commit -m "deploy commit: CAHLR/OATutor@$GITHUB_SHA"
git push
git push https://x-access-token:${{ secrets.GH_PAT }}@github.com/CAHLR/OATutor-Staging.git main

0 comments on commit fc7b777

Please sign in to comment.