Skip to content

Commit

Permalink
Workflow updated for authenticating
Browse files Browse the repository at this point in the history
  • Loading branch information
shewa12 committed Oct 1, 2024
1 parent 339c268 commit fdbd0df
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/staging-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
- name: Install Composer
run: sudo apt-get update && sudo apt-get install -y composer

- name: Install Composer Dependencies in Paypal Directory
run: composer install --no-dev --working-dir=./ecommerce/PaymentGateways/Paypal

- name: Clone tutor-droip repository
run: |
if [ ! -d "tutor-droip" ]; then
git clone https://github.com/jshossen/tutor-droip.git tutor-droip
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Extract version number
id: get_version
run: |
Expand Down Expand Up @@ -56,4 +67,4 @@ jobs:
ssh [email protected] << 'EOF'
rm -rf /var/www/html/subdomains/tutor-lms/wp-content/plugins/tutor
unzip -o /var/www/html/subdomains/tutor-lms/wp-content/plugins/tutor-${{ env.VERSION_NUMBER }}.zip -d /var/www/html/subdomains/tutor-lms/wp-content/plugins
EOF
EOF

0 comments on commit fdbd0df

Please sign in to comment.